mirror of
https://github.com/cheat/cheat.git
synced 2025-09-04 02:58:29 +02:00
Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
03bb651bf0 | |||
c4a5ca3900 | |||
03b587f538 | |||
e4d7722476 | |||
3807aa5433 | |||
956ce7fadd | |||
58abb16ca1 | |||
54e30022f0 | |||
c412cd0534 | |||
2d67038188 | |||
603bc360c0 |
@ -38,7 +38,7 @@ from docopt import docopt
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# parse the command-line options
|
# parse the command-line options
|
||||||
options = docopt(__doc__, version='cheat 2.1.0')
|
options = docopt(__doc__, version='cheat 2.1.2')
|
||||||
|
|
||||||
# list directories
|
# list directories
|
||||||
if options['--directories']:
|
if options['--directories']:
|
||||||
|
2
cheat/cheatsheets/ping6
Normal file
2
cheat/cheatsheets/ping6
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# get all ipv6 neighbors via broadcast ping
|
||||||
|
ping6 -I eth0 ff02::1
|
5
cheat/cheatsheets/smbclient
Normal file
5
cheat/cheatsheets/smbclient
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# To display public shares on the server:
|
||||||
|
smbclient -L <hostname> -U%
|
||||||
|
|
||||||
|
# To connect to a share:
|
||||||
|
smbclient //<hostname>/<share> -U<username>%<password>
|
18
cheat/cheatsheets/ss
Normal file
18
cheat/cheatsheets/ss
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
ss
|
||||||
|
Utility to investigate sockets
|
||||||
|
|
||||||
|
Args
|
||||||
|
-4/-6 list ipv4/ipv6 sockets
|
||||||
|
-n numeric addresses instead of hostnames
|
||||||
|
-l list listing sockets
|
||||||
|
-u/-t/-x list udp/tcp/unix sockets
|
||||||
|
-p Show process(es) that using socket
|
||||||
|
|
||||||
|
# show all listing tcp sockets including the corresponding process
|
||||||
|
ss -tlp
|
||||||
|
|
||||||
|
# show all sockets connecting to 192.168.2.1 on port 80
|
||||||
|
ss -t dst 192.168.2.1:80
|
||||||
|
|
||||||
|
# show all ssh related connection
|
||||||
|
ss -t state established '( dport = :ssh or sport = :ssh )'
|
@ -4,6 +4,9 @@ ssh -i /path/to/file.pem user@example.com
|
|||||||
# To connect on an non-standard port:
|
# To connect on an non-standard port:
|
||||||
ssh -p 2222 user@example.com
|
ssh -p 2222 user@example.com
|
||||||
|
|
||||||
|
# To connect and forward the authentication agent
|
||||||
|
ssh -A user@example.com
|
||||||
|
|
||||||
# To execute a command on a remote server:
|
# To execute a command on a remote server:
|
||||||
ssh -t user@example.com 'the-remote-command'
|
ssh -t user@example.com 'the-remote-command'
|
||||||
|
|
||||||
|
2
setup.py
2
setup.py
@ -3,7 +3,7 @@ import os
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = 'cheat',
|
name = 'cheat',
|
||||||
version = '2.1.0',
|
version = '2.1.2',
|
||||||
author = 'Chris Lane',
|
author = 'Chris Lane',
|
||||||
author_email = 'chris@chris-allen-lane.com',
|
author_email = 'chris@chris-allen-lane.com',
|
||||||
license = 'GPL3',
|
license = 'GPL3',
|
||||||
|
Reference in New Issue
Block a user