Showing posts with label script. Show all posts
Showing posts with label script. Show all posts

Sunday, January 28, 2018

[MCSC] evilpython 50pts - Writeup[/PWN]

Now I going to write about evilpython pwn writeup from Myanmar Cyber Security Challenge 2018.



 
Hint - "Evil exists not only in hell"


Now time to test!
I just connect with my nc( netcat client ) to server that running evilpython.


first I submit "123" to server.
the server response back to me "123"
Now I try to submit some payload "1-2"
the server response back to me "-1", Opps!
why response back "-1".
And try to reconnect to server with nc and don't type anything just press Enter.
I got some error.


I know the backend running python script execute with eval function to our input variable age. 

evil_age = eval(age)

I quick look up in google and I found the python payload like that

"[].__class__.__base__.__subclasses__()[59].__init__.func_globals['linecache'].__dict__.values()[12].__dict__.values()[144]('id')"


uid=1000(pyevil)

bingo! we executed "id" command to server, Now I need to find the flag in server.
the evil python script is running under pyevil user privilege, so the flag will be under pyevil home folder ( just I guess ), let search the flag in home folder.  



Now I found the flag path, let read the flag.


flag : mcsc{eval_is_s0_ev!l}



Thanks For reading.

This is second challenge that I solved in MCSC2018.
And the first solver team of that challenge, so we got another bonus (1 point ).

Note : I forget to read evil.py script!
I want to say thank you to Ko ******* who created this challenge.

Thursday, July 28, 2016

[Hash-Cracker]Hash-Cracker no need wordlist but need a time[python2]

Hello Today i want to upload python script
that can brute-force hash (md5,sha1,etc...)

No Need Wordlist file but just only need a time :D

Here is
Usage : Just type in terminal :P  
python2 hash-cracker.py

Hash : bf083d4ab960620b645557217dd59a49
1  ) All Characters (A-Za-Z0-9+SC)
2  ) Lower Characters ( a-z )
3  ) Upper Characters ( A-Z ) 
4  ) Only Digit ( 0-9 ) 
5  ) Special Characters ( !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ )
6  ) Lower Characters and Upper Characters ( A-Za-z )
7  ) Lower Characters and digits ( a-z0-9 )
8  ) Lower Characters and Special Characters (a-z+SC) 
9  ) Upper Characters and digits (A-Z0-9) 
10 ) Upper Characters and Special Characters ( A-Z+SC ) 
11 ) Digit and Special Characters ( 0-9+SC )
12 ) Lower Characters and digits and Special Characters ( a-z0-9+SC ) 
13 ) Upper Characters and digits and Special Characters ( A-Z0-9+SC )
14 ) Lower Characters and Upper Characters and digits (a-zZ-A0-9) 
15 ) Lower Characters and Upper Characters and Special Characters ( a-zA-Z+SC ) 
Choice : 2
++++++++++++++++++++++++++++++
 1 ] DSA
 2 ] DSA-SHA
 3 ] MD4
 4 ] MD5
 5 ] RIPEMD160
 6 ] SHA
 7 ] SHA1
 8 ] SHA224
 9 ] SHA256
 10 ] SHA384
 11 ] SHA512
 12 ] dsaEncryption
 13 ] dsaWithSHA
 14 ] ecdsa-with-SHA1
 15 ] md4
 16 ] md5
 17 ] ripemd160
 18 ] sha
 19 ] sha1
 20 ] sha224
 21 ] sha256
 22 ] sha384
 23 ] sha512
 24 ] whirlpool

Choice hash algorithms to Crack (1-24) : 4
Cracking with [ lll / 7734 ] : bf083d4ab960620b645557217dd59a49       |
Password Found :  lll




Download From Github

Monday, July 25, 2016

Zip password cracker python script hehe

Today i created simple python script that can crack zip password using wordlist file

Here is usage

python zippasscracker.py zipfilename.zip passwordfile.txt



====================================


Download From Github