Default print PEAS files

This commit is contained in:
Jordan ERNST 2022-04-21 20:54:32 +02:00
parent 7a615fec51
commit 5c44f7c770
1 changed files with 6 additions and 6 deletions

View File

@ -133,12 +133,12 @@ def listen_http(files_dir):
port = ask_port(80)
ips = get_ips()
print('The HTTP server is about to start.\nAvailable endpoints:')
print('The HTTP server is about to start.\nA good start ;) :')
for iname in ips:
if port == 80:
print(f' -> {iname}: http://{ips[iname]}/')
print(f' -> {iname}: http://{ips[iname]}/linpeas.sh')
else:
print(f' -> {iname}: http://{ips[iname]}:{port}/')
print(f' -> {iname}: http://{ips[iname]}:{port}/linpeas.sh')
if port < 1024 and not is_sudo():
print('Listening on any port under 1024 requires root permissions.')
@ -152,12 +152,12 @@ def listen_smb(files_dir):
port = ask_port(445)
ips = get_ips()
print('The HTTP server is about to start.\nAvailable endpoints:')
print('The HTTP server is about to start.\nA good start ;) :')
for iname in ips:
if port == 445:
print(f' -> {iname}: \\\\{ips[iname]}\\share\\')
print(f' -> {iname}: \\\\{ips[iname]}\\share\\winPEASany.exe')
else:
print(f' -> {iname}: \\\\{ips[iname]}:{port}\\share\\ # This syntax (:port) is not supported on Windows ?')
print(f' -> {iname}: \\\\{ips[iname]}:{port}\\share\\winPEASany.exe # This syntax (:port) is not supported on Windows ?')
if port < 1024 and not is_sudo():
print('Listening on any port under 1024 requires root permissions.')