mirror of
https://github.com/cheat/cheat.git
synced 2025-09-02 10:08:30 +02:00
Merging new cheatsheets into kragniz's work.
This commit is contained in:
17
cheatsheets/asterisk
Normal file
17
cheatsheets/asterisk
Normal file
@ -0,0 +1,17 @@
|
||||
To connect to a running Asterisk session:
|
||||
asterisk -rvvv
|
||||
|
||||
To issue a command to Asterisk from the shell:
|
||||
asterisk -rx "<command>"
|
||||
|
||||
To originate an echo call from a SIP trunk on an Asterisk server, to a specified number:
|
||||
asterisk -rx "channel originate SIP/<trunk>/<number> application echo"
|
||||
|
||||
To print out the details of SIP accounts:
|
||||
asterisk -rx "sip show peers"
|
||||
|
||||
To print out the passwords of SIP accounts:
|
||||
asterisk -rx "sip show users"
|
||||
|
||||
To print out the current active channels:
|
||||
asterisk -rx "core show channels"
|
33
cheatsheets/nmap
Normal file
33
cheatsheets/nmap
Normal file
@ -0,0 +1,33 @@
|
||||
Single target scan:
|
||||
nmap [target]
|
||||
|
||||
Scan from a list of targets:
|
||||
nmap -iL [list.txt]
|
||||
|
||||
iPv6:
|
||||
nmap -6 [target]
|
||||
|
||||
OS detection:
|
||||
nmap -O [target]
|
||||
|
||||
Save output to text file:
|
||||
nmap -oN [output.txt] [target]
|
||||
|
||||
Save output to xml file:
|
||||
nmap -oX [output.xml] [target]
|
||||
|
||||
Scan a specific port:
|
||||
nmap -source-port [port] [target]
|
||||
|
||||
Do an aggressive scan:
|
||||
nmap -A [target]
|
||||
|
||||
Traceroute:
|
||||
nmap -traceroute [target]
|
||||
|
||||
Ping scan only: -sP
|
||||
Don't ping: -PN
|
||||
TCP SYN ping: -PS
|
||||
TCP ACK ping: -PA
|
||||
UDP ping: -PU
|
||||
ARP ping: -PR
|
5
cheatsheets/scp
Normal file
5
cheatsheets/scp
Normal file
@ -0,0 +1,5 @@
|
||||
To copy a file from your local machine to a remote server:
|
||||
scp foo.txt user@example.com:remote/dir
|
||||
|
||||
To copy a file from a remote server to your local machine:
|
||||
scp user@example.com:remote/dir/foo.txt local/dir
|
Reference in New Issue
Block a user