From 48ee92e6e56ec87c1ef5a8258aff705705ea008b Mon Sep 17 00:00:00 2001 From: Kate Churanova Date: Tue, 30 May 2017 13:50:50 +0200 Subject: [PATCH 1/4] fixed shebang and unicode handling --- .gitignore | 96 ++++++++++++++++++++++++++++++++++++++++ core/lib/wp_print.py | 10 ++--- core/modules/wp_users.py | 2 +- wpseku.py | 4 +- 4 files changed, 104 insertions(+), 8 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1615e85 --- /dev/null +++ b/.gitignore @@ -0,0 +1,96 @@ +# Created by .ignore support plugin (hsz.mobi) +### Python template +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# dotenv +.env + +# virtualenv +.venv +venv/ +ENV/ + +# Spyder project settings +.spyderproject + +# Rope project settings +.ropeproject + diff --git a/core/lib/wp_print.py b/core/lib/wp_print.py index 687cb8a..dc54be7 100755 --- a/core/lib/wp_print.py +++ b/core/lib/wp_print.py @@ -19,21 +19,21 @@ class WPPrint: def aprint(self,string,flag="##"): # flag = green - print "{}{}{} {}{}{}".format(self.g,str(flag),self.e,self.nw,str(string),self.e) + print u"{}{}{} {}{}{}".format(self.g,flag,self.e,self.nw,string,self.e) def bprint(self,string,flag="##"): # flag = red - print "{}{}{} {}{}{}".format(self.r,str(flag),self.e,self.nw,str(string),self.e) + print u"{}{}{} {}{}{}".format(self.r,flag,self.e,self.nw,string,self.e) def cprint(self,string,flag="##"): # flag = yellow - print "{}{}{} {}{}{}".format(self.y,str(flag),self.e,self.nw,str(string),self.e) + print u"{}{}{} {}{}{}".format(self.y,flag,self.e,self.nw,string,self.e) def dprint(self,string,flag="||"): # flag = green - print "\t{}{}{} {}{}{}".format(self.g,str(flag),self.e,self.nw,str(string),self.e) + print u"\t{}{}{} {}{}{}".format(self.g,flag,self.e,self.nw,string,self.e) def eprint(self,string,flag="||"): # flag = red - print "\t{}{}{} {}{}{}".format(self.r,str(flag),self.e,self.nw,str(string),self.e) + print u"\t{}{}{} {}{}{}".format(self.r,flag,self.e,self.nw,string,self.e) diff --git a/core/modules/wp_users.py b/core/modules/wp_users.py index 67f25f3..08e8b39 100755 --- a/core/modules/wp_users.py +++ b/core/modules/wp_users.py @@ -75,7 +75,7 @@ def init(self): users.append(x) if users != []: for z in range(len(users)): - self.print_.dprint("ID: {} - Name: {}".format(z,users[z])) + self.print_.dprint(u"ID: {} - Name: {}".format(z,users[z])) print "" elif users == []: self.print_.eprint("Not found users ") diff --git a/wpseku.py b/wpseku.py index b6a99ce..d1cb2cf 100755 --- a/wpseku.py +++ b/wpseku.py @@ -1,4 +1,4 @@ - #!/usr/bin/env python +#!/usr/bin/env python2 # -*- coding:utf-8 -*- # WPSeku - Wordpress Security Scanner # Coded by Momo Outaadi (M4ll0k) (C) 2017 @@ -182,4 +182,4 @@ def Main(self): main = WPSeku(sys.argv[1:]) main.Main() except KeyboardInterrupt: - sys.exit("KeyboardInterrupt!!") \ No newline at end of file + sys.exit("KeyboardInterrupt!!") From 474ad4b781ac35d8fdf29fb7c8b3230c4613bd25 Mon Sep 17 00:00:00 2001 From: Kate Churanova Date: Tue, 30 May 2017 14:07:52 +0200 Subject: [PATCH 2/4] removed compiled pyc files, cleaned gitignore --- .gitignore | 95 +----------------------------------- core/__init__.pyc | Bin 131 -> 0 bytes core/lib/wp_banner.pyc | Bin 1410 -> 0 bytes core/lib/wp_checker.pyc | Bin 759 -> 0 bytes core/lib/wp_colors.pyc | Bin 1474 -> 0 bytes core/lib/wp_info.pyc | Bin 1069 -> 0 bytes core/lib/wp_print.pyc | Bin 2065 -> 0 bytes core/lib/wp_request.pyc | Bin 2873 -> 0 bytes core/modules/__init__.pyc | Bin 139 -> 0 bytes core/modules/wp_attack.pyc | Bin 5719 -> 0 bytes core/modules/wp_brute.pyc | Bin 3676 -> 0 bytes core/modules/wp_generic.pyc | Bin 11541 -> 0 bytes core/modules/wp_plugin.pyc | Bin 5286 -> 0 bytes core/modules/wp_theme.pyc | Bin 5945 -> 0 bytes core/modules/wp_users.pyc | Bin 3155 -> 0 bytes 15 files changed, 1 insertion(+), 94 deletions(-) delete mode 100644 core/__init__.pyc delete mode 100644 core/lib/wp_banner.pyc delete mode 100644 core/lib/wp_checker.pyc delete mode 100644 core/lib/wp_colors.pyc delete mode 100644 core/lib/wp_info.pyc delete mode 100644 core/lib/wp_print.pyc delete mode 100644 core/lib/wp_request.pyc delete mode 100644 core/modules/__init__.pyc delete mode 100644 core/modules/wp_attack.pyc delete mode 100644 core/modules/wp_brute.pyc delete mode 100644 core/modules/wp_generic.pyc delete mode 100644 core/modules/wp_plugin.pyc delete mode 100644 core/modules/wp_theme.pyc delete mode 100644 core/modules/wp_users.pyc diff --git a/.gitignore b/.gitignore index 1615e85..b040238 100644 --- a/.gitignore +++ b/.gitignore @@ -1,96 +1,3 @@ -# Created by .ignore support plugin (hsz.mobi) -### Python template # Byte-compiled / optimized / DLL files __pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -*.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# pyenv -.python-version - -# celery beat schedule file -celerybeat-schedule - -# SageMath parsed files -*.sage.py - -# dotenv -.env - -# virtualenv -.venv -venv/ -ENV/ - -# Spyder project settings -.spyderproject - -# Rope project settings -.ropeproject - +*.pyc diff --git a/core/__init__.pyc b/core/__init__.pyc deleted file mode 100644 index e6651ba68a157e29e7cc98f877fe77c829309b7d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 131 zcmZSn%**x9S|Ku-0SXv_v;zfgc5M9Sf+N3Gha$_%u9B3CLjuk=_sYQsYN|7omOD2uCiWA!#*&CuN&MEw3 zegM1~yKxaBvQXFd?0md^vpXK!{kh+bzC8On66I)MeupP}4iVsXL?p!ZMt8)uBZ7wb z0cV4vmwgw=@E6AUhNT7939);PkBWY;dlqhilfvwQAzp zHE}!JaZM5I3Oa9RJFZ2ABwSZa+7If*m9aZw0v437L$az8N7pFP!_w8H>OLOT-s4gA z{z(<=iPJN*<7K~xwmJ_TYOX$nl+wo|{bG~~dCEYc$`YK*T;k3NFFnO@cnV($m4AVA zUrFW3Z-<9R<%)uUQ&h~#V|pLx0*eI5B6FHdJU zPY)p8D6oX42`JC^puI#WL@`A6qA1DcBwLiM18klzS8};puFzIO^!Fhw`4=;PWFnJh zb{E#w#YthfFj5^@nspLb`py^Q&}!R;cBiArELgoYX*{%OU8V|?Tf^?Fi;tu>;ZBCJ z=J0FIWs#O%; z!1iy3NutxE*&P$VXNyjjJtb17|Ht*oDK7q(4XC*Wbnd|uh$=s8|G5dGJC02-kMvur LRYo=FIlabjC0z_j diff --git a/core/lib/wp_checker.pyc b/core/lib/wp_checker.pyc deleted file mode 100644 index 15d71a3fa1b0d299f4b2753d7e47077844a88cc1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 759 zcmb_a%}T>S5S~r6))LWMZnnqZ!H9Si5i58r+8m_0EHPP0o1_WZEmi2P;*)sr{d@su zCZ!VarXe%gZ|0ldjs11dd%x>XV%R)3ey>rqiz>m_hD5*{z#3o@BDNs#cF|z*0YC<2O0&y%H(HC8ofoSfM+)~b? zLP^OzN?DZ2A}6@VzNCz$9Mk!ytG~21#!P(8n#S*ljusiQpE|t$%VwA>`mHny Fd;@EPl_UTF diff --git a/core/lib/wp_colors.pyc b/core/lib/wp_colors.pyc deleted file mode 100644 index bf76c91e6afb7b5b1893ee78eb3a29f6f81956a1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1474 zcmcIkO>5gg5FN>~;sjDipqOGxbJVHIhY5w25*izPYJreRX)eV)1=ehMx|Zh@OZZiEc`s$5dnq z`$CV^*Du$NYg+&3^@tZgvG@@yOH@VxDdROr$!Iaq$^^(Tx?~bDQZijJ_Q<4S^hg!i z9?*_h6_a}I?1=&JNkw0@sTja!r}ygLST1 zqAa#RcDO^bsHr=*urIem_1zAsq6U`tlVD%{!xhE$EYf30hDrm3`6psA3NLb)ioR1XR$ rf7yxkf8DJZh~#v7!A2UT(SGuLk5>`ob70$60!r>5R@r`(z<~Y@2j&gc diff --git a/core/lib/wp_info.pyc b/core/lib/wp_info.pyc deleted file mode 100644 index 5ea1f4f7c6404774abfb52a0baeba39fde9806bc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1069 zcmb_a%}#?r5MH3Iwx$OU#-k)&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LoE9lHrUSNK_t3F!!rBrt*|M?(1Qz5>%*tnXPX#0GmaMWaa}ULn4HO6=ugL{KWkU2>)3=~6C6T!g&K@X~P{R(PmWC)C7bFQ!5n9mPh1cA}W2 z+UG!hj#OBC=1BW|d#xqQ>g2#xz#2Ud&7p09BH8R6P&QcVjKT>3a*RLigr?#nSqDnysF)&JkT;@oz|{D*i9h48g)Qmj~#A+o3|{##iVI zVA*Z5^Wh~%5BSGYq`Bg>+1y(K!YU_!tkk?F<$x(qO#QA-bZS!2g{GHlPB+EK+cZO= z6wT}OG`&V;e&{ld>SX?e%{2tK#(MLuoN_aAXp+!yU(&J=xpqJ_*w((Z(^-`Mg^&*g`m&=rqFR<+65`jbhz3 zSzlY58EH~U<8hc+?JhvAllk1>m_rLYd0(@2JojQ+SZBumQJh3U1{d&u4vaXpE=-bw z#UrFW(EXA4=nKU)TFlWR9X22nmcxH!OlG8d29=aD9BPN8MH^&4i?qn&^dM_-7(Qnz zHDxtE*kev_1 zG#u+7aE!7b7-!K@!bh%m5JXuYH0xoE<^W^C({7i+=JUn-EX}cY8`MdbLY;9=`>;fe zRLj;Ys-hZRZN~(C*x9BUpGw~wzsEjXO_~2#9Hz0$ZuZa(BEXxIr z_|?UnP98cd2r~SeprpeNCUTX6AimqNJrrD=C3`XMV+!* z1=r`!^grc|e_TjUp>bq_X(OOs&eYe(C1YD|;gn6V=!`XyroErH^8?1T+)o1o1OMLU Ijjfgc08Upm=>Px# diff --git a/core/modules/__init__.pyc b/core/modules/__init__.pyc deleted file mode 100644 index 94b0c26851a0078e0b8899bb0e76b1991be0bfc6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 139 zcmZSn%*%DnS|Ku-0SXv_v;zL7X%bhb3{0DvpKY#;2fdj#X0|yT9W!Ai88!(H4yva?>9S(#sDb>S~F zlilkV9@nY&uYljr@Yr8~g!r#0CfZT7u1N8_C+{Aud+xm;?*&>fxc8#G7iqod-p42& zqxCVF3;Z~(kN5crTA!d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gj4T+?u;O=WinYZ_O=cQ4r7F7Mlf@9#pYb zZ`Glh7yqLb?f1~V5$pyP`#i2-zCm^`_*L;`&&kj9toKfV_YLIUY6p~F9(a5HrL$`ms zsc{%I?Hqctq3uc%?BJxRtOPq|CCz`BwvuqT2(Np8d2w}Q4HhjgU6q{`?=M&eRu&EP zm6K(8kEgCn$GaSw_Bi_8OLCKKAT~yNb9`3!M7V=sLK(MUj|^qQX&G=I>cz`nUb%eZ zsdRam1@(AjE`eHKPApO4)plRXMg0LL((D5P(UmkYJy=g$%`$_R!)=DJFvtUe?o^gK z5Nze*G29UEeIKm74np2BRs5IFhp)9yt2&=o>_2vmpzU8F`NoUDs%qaKEdp;#5%{Sq z0xy44MIgHc_>JlhB_#lVrjN6U!uc>P;$Ex%&~w;2C;-R%1>k7q_&+EB|A+$c@EZ%j zX#~NFeIK-600PHwBJ@CiPzq|U{4@iW=A3+`5M=B_A*fGq6UWy`87MhCQURh8d}I9w zD0#L1(_B32Q%p`X;d)P>VZybe=A%P%wV~f*!bhBDOZ2yyaCmFR8SOKXYt}91ZZKgb z^>>)?nWz~CH6L)A!B=z2>W@ImoG6mnn$HD&iOI)IE;FexnP+l^i7fdEb61&sm&r9I zoU)oPbq9h4j5hGN;UCtD`gN9?MO`Izmg?78vuax199CLvHpB7%bN_8GfJpP+G(1TxB!_6H3LA3zZ~ z*+)P@pg=(36+B>{{r7lqpiqFV_$9R3f8`oNLI297-sdZqa#t?7Y4$!Aq2@BRntVB| z)!auVymG-&tA%O3R?}en-?{F%4~q_G`Q9cS*H%~gOQOSTuER9fCtBe4Hgi7!8DgJs zU;iVQ<|2!MS?alQH4coM_DT~azjU$WyJZ;Q#6JF7QNf*GjBq>5YRk7fSJd$UcY^S| a2d1U0e$)B$Hh%!L96Lvp`-8@6y6_Jjv3i&Q diff --git a/core/modules/wp_brute.pyc b/core/modules/wp_brute.pyc deleted file mode 100644 index 646a9a034368fcc13093d6ca48292df65b9f8e96..0000000000000000000000000000000000000000 GI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Smv9G&<$k+ohH|Hx>=Fg19KXH(_ zArQA2@e`!9t|CYBV(7iigd+~vPX6Pf<4PH415f~y9%4qQ#Lw}J(yoGlL8TJL|l2doC zIPcxQslbQW`tK*y~cvQzpSas;9s>{{B@>tVr^$|O8jx! GHTT~y>w0(q diff --git a/core/modules/wp_users.pyc b/core/modules/wp_users.pyc deleted file mode 100644 index 320eb3e1219d979bfb212fa8349b3030125ca9e2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3155 zcmb_eOK%%h6h7DEN1Qe^eb6>MTKA#i3MEEWD^QiTl%xVSQ8WRibrX$@XOj4l8E5X8 zIK>f*vfvNEg1^9`tXQx|uwu`GU%?N6?>pB{QY03j*fVF&eV@m7&bi*7QI(&@_-NU+7*yUs2;R~QjsU^Jf(unQBm3@ay=lr9&{AuIN)lw}M;SsJr2Fy-(FLT3z>ynwif=6|W=q zHn`eWvK`g7Z+E-zbZU!{?PN)>w%fB&r(bI(DTb1;-;FH#0zGN2x2Ky1K`U-$L2w$I zSRN&&Y_6ClJw{5TX-{%sSdtk4U@7U<|xQM2GG-yUW z!c!yB=b^g4?zok0cSq1^X-6{&BV}6gMxqRL0BA)9N~7a|1QD>?qdMoo*)t&GdFGF};oO0lx5jb1H@f(=IFOq2ngOB0S#q}SFi@opEe;QkajK`>g_zor)=z7E& z2F7?8foF^y00XFKBO_o9f)Vop64wJ0HcJ&$KJA_5K+*_0ifpvvu+i-v!Y3MJfRBF>V^w;< zq2>}fW(9wSf&;0j%0(Fo*T$Xm(1Gym$bvMO^%OM1SOAlpD56|G|(vkE)+b>zh zX6*spbT75`mYqX;K5X7?rconH();sQ)}AgbKK$h2+EexD+WOl1{rTFF8O{|iJND3_ z{#9(~UnAjBK8@u(s4hE*`+s%bvAN7eH#NNj87u{s9HLv@b;MCjga@(x2O6k~AAZCr zRaY^<5nXJ9L&YG+Lg_fI=LXdh;Xjxi1^43mRgH86yO9o}b%Bg40h-JgWM@HE(T9Z{ zPtu=caCck~v>IU6;`$BNl#w8~9H8Q$ET9Jk$U{|dg6({b7^cMWWsYz|)STbP>+}jS zN)H<9S|yOXMi@T0IK-P3h73!BotvAp4BC$u?^eFpugq4K&`VaWxRhj-jieuky1-Tr zD~R5c0xc#D<^2kF@o$j4MWT?nKu)s*)2`0OEe1C%WjB&^yW!Z#-Mi=@7y7!K@vk-D z*>MCmH|M25FKpaeOuN&OeWoiyk0&Y0_F0^jN@Je^Pu0-7oa^ePzy?#h8?NyoyZ z83aDq@hxb<-85Z7WYW`#tINw&+`owqpIiUaU^Vm|s;S)nz5@BwbqcR~v4~`K6900c z{7U(BdCHwa%~U Date: Tue, 30 May 2017 14:27:39 +0200 Subject: [PATCH 3/4] cleaned last pyc left out by previous commit --- core/lib/__init__.pyc | Bin 135 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 core/lib/__init__.pyc diff --git a/core/lib/__init__.pyc b/core/lib/__init__.pyc deleted file mode 100644 index 9f96356bf02459a52824368b1aed8a09103c51a4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 135 zcmZSn%*(aeT|P3I0SXv_v;z Date: Wed, 31 May 2017 14:35:38 +0200 Subject: [PATCH 4/4] Loaded web pages are expected to be unicode encoded. TODO: decode webpages according to encoding specified in its header --- core/lib/wp_request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/wp_request.py b/core/lib/wp_request.py index b9b9a48..743d0ac 100755 --- a/core/lib/wp_request.py +++ b/core/lib/wp_request.py @@ -51,7 +51,7 @@ def Send(self,url,method='GET',payload=None,headers=None,cookie=None): resp = urllib2.urlopen(req) except urllib2.HTTPError,e: resp = e - return resp.read(),resp.geturl(),resp.getcode(),resp.info() + return resp.read().decode('utf-8'),resp.geturl(),resp.getcode(),resp.info() class NoRedirectHandler(urllib2.HTTPRedirectHandler): def http_error_302(self,req,fp,code,msg,headers):