Default print PEAS files
This commit is contained in:
parent
7a615fec51
commit
5c44f7c770
@ -133,12 +133,12 @@ def listen_http(files_dir):
|
|||||||
port = ask_port(80)
|
port = ask_port(80)
|
||||||
ips = get_ips()
|
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:
|
for iname in ips:
|
||||||
if port == 80:
|
if port == 80:
|
||||||
print(f' -> {iname}: http://{ips[iname]}/')
|
print(f' -> {iname}: http://{ips[iname]}/linpeas.sh')
|
||||||
else:
|
else:
|
||||||
print(f' -> {iname}: http://{ips[iname]}:{port}/')
|
print(f' -> {iname}: http://{ips[iname]}:{port}/linpeas.sh')
|
||||||
|
|
||||||
if port < 1024 and not is_sudo():
|
if port < 1024 and not is_sudo():
|
||||||
print('Listening on any port under 1024 requires root permissions.')
|
print('Listening on any port under 1024 requires root permissions.')
|
||||||
@ -152,12 +152,12 @@ def listen_smb(files_dir):
|
|||||||
port = ask_port(445)
|
port = ask_port(445)
|
||||||
ips = get_ips()
|
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:
|
for iname in ips:
|
||||||
if port == 445:
|
if port == 445:
|
||||||
print(f' -> {iname}: \\\\{ips[iname]}\\share\\')
|
print(f' -> {iname}: \\\\{ips[iname]}\\share\\winPEASany.exe')
|
||||||
else:
|
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():
|
if port < 1024 and not is_sudo():
|
||||||
print('Listening on any port under 1024 requires root permissions.')
|
print('Listening on any port under 1024 requires root permissions.')
|
||||||
|
Loading…
Reference in New Issue
Block a user