Skip to content

Commit 9589cb0

Browse files
committed
Added arch detection
1 parent f9ec034 commit 9589cb0

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

modules/exfil.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ def exfil(win):
2929
elif exfil_choice == '':
3030
pass
3131
elif exfil_choice == 'exit' or exfil_choice == 'quit':
32-
subp.call(['systemctl', 'stop', 'ssh.service'])
32+
distro = os.system('uname -r')
33+
if 'ARCH' in distro:
34+
subp.call(['systemctl', 'stop', 'sshd.service'])
35+
else:
36+
subp.call(['systemctl', 'stop', 'ssh.service'])
3337
subp.call(['pkill', 'php'])
3438
exit()
3539
elif int(exfil_choice) <= len(exfil_scripts) - 1:

modules/misc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ def misc(win):
2929
elif misc_choice == '':
3030
pass
3131
elif misc_choice == 'exit' or misc_choice == 'quit':
32-
subp.call(['systemctl', 'stop', 'ssh.service'])
32+
distro = os.system('uname -r')
33+
if 'ARCH' in distro:
34+
subp.call(['systemctl', 'stop', 'sshd.service'])
35+
else:
36+
subp.call(['systemctl', 'stop', 'ssh.service'])
3337
subp.call(['pkill', 'php'])
3438
exit()
3539
elif int(misc_choice) <= len(misc_scripts) - 1:

modules/reverse_shell.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ def rshell(win):
3030
elif rshell_choice == '':
3131
pass
3232
elif rshell_choice == 'exit' or rshell_choice == 'quit':
33-
subp.call(['systemctl', 'stop', 'ssh.service'])
33+
distro = os.system('uname -r')
34+
if 'ARCH' in distro:
35+
subp.call(['systemctl', 'stop', 'sshd.service'])
36+
else:
37+
subp.call(['systemctl', 'stop', 'ssh.service'])
3438
subp.call(['pkill', 'php'])
3539
exit()
3640
elif int(rshell_choice) <= len(rs_scripts) - 1:

modules/sftp.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ def sftp():
2323
sftp.sftp_pass = reader[1].strip()
2424

2525
print(G + '[+]' + C + ' Starting SFTP Server...' + W)
26-
subp.call(['systemctl', 'start', 'ssh.service'])
26+
distro = os.system('uname -r')
27+
if 'ARCH' in distro:
28+
subp.call(['systemctl', 'start', 'sshd.service'])
29+
else:
30+
subp.call(['systemctl', 'start', 'ssh.service'])

0 commit comments

Comments
 (0)