The Linux🐧 commands you should NEVER use.
⚠️Disclaimer: Don't RUN these commands.

A thread🧵👇
1. Recursive Deletion🔁🗑️
This is one of the most dangerous commands. Once this command is run, it deletes all the content of the root directory forcefully and recursively. Thus, all your directories and sub-directories will be deleted and the data will be lost.
2. Fork Bomb🍴💣
My personal best😄, this is a simple bash recursive function which once executed creates copies of itself which in turn creates another set of copies of itself. This consumes the CPU time and memory. Thus, it runs recursively until the system freezes.
3. Overwrite Hard Drive✍️📀
This command writes raw data (output of the command) to the specified partition ie sda, sda1..,... This results in data loss in the hard drive or mentioned partition.
cmd- this could be any command.
4. Implode Hard Drive🕳️
These commands will move all the data to a special location in Linux called the black hole (/dev/null). Anything moved to this location is destroyed. Thus if you accidentally move your data to this folder, your data is not going to be recovered anyway.
5. Download and Execute Malicious Script☠️📜
Wget is a very useful Linux command for fetching/downloading files from the internet. But this command can be dangerous if we blindly download and execute a malicious script.
6. Format Hard Drive🧹📀
This command will wipe out your hard drive and makes it BRAND NEW! Without any data, leaving your system into an unrecoverable stage😄. These should only be used in instances when you have either have your data backup on the cloud or an external device.
7. Write Random Junk to Hard Drive🈲🉐📀
This command will write random junk data into your drive. The after-effects of this command are that your system will not be recovered.
8. Breach the System🔓
This cmd doesn’t physically affect your system as the other commands do, but this provides a security breach on the system. By executing this command, you are providing all the users of the system to be able to read, write and execute data on your system.
9. The Hidden (rm -rf /)🔁🗑️
The below command is nothing but the rm -rf / command above. Here the codes are hidden in hex so that an ignorant user may be fooled. Running the below code in your terminal will wipe your root partition.
10. history | sh☸️
the command can be dangerous too as it executes every command from the command log that you have already executed. The action can make your system unstable and execute commands that you didn't want to execute again.
Please DON'T execute any of the above commands in your Linux terminal or shell or of your friend or school computer. If you want to test them, run them on a virtual machine. Any in-consistence or data loss, due to the execution of the above command will break your system.
That's it! Thank you for reading today's thread😇. If you have other DON'T run commands I have missed, feel free to add them in the comments. Would love to know them as well. And be sure to rt🔁, like💌and follow me (@xtremepentest) for more future Linux content.
11. alias ls='sudo rm -rf /'
This command will replace the command ls with 'sudo rm -rf /'. Thus if the command ls is executed it will run Sudo -rm -rf / which in turn will delete everything on your system.😅😅

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Traw | Xtreme Pentesting

Traw | Xtreme Pentesting Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @xtremepentest

29 Dec 21
OSCP (Offensive Security Certified Professional) Pass and Preparation - Tips and Tricks 💡

A thread🧵
OSCP journey how I passed #OSCP with 100 points in 10 hours.
johnchakauya.medium.com/oscp-journey-h…
2. The Ultimate OSCP Preparation Guide, 2021
johnjhacking.com/blog/the-oscp-…
Read 18 tweets
9 Dec 21
Websites/Platforms 🌐 to learn to hack 🕵️

⚗️Cybersecurity training platform

→ Hackthebox
→ Hacxpert
→ Tryhackme
→ Pentester Lab
→ Vulnhub
→ Cybrary
→ CybersecLabs
→ Root Me
→ OverTheWire
→ Vulnmachines
→ RangeForce
→ certifiedsecure
→ EchoCTF
→ Try2Hack

thread
🌐Web Exploitation
→ Hacxpert
→ Portswigger Web Security Academy
→ Bug Bounty Hunter
→ Pentester Lab
application.security
→ OWASP Juice Shop
→ OWASP WebGoat
→ bWAPP
→ OWASP Broken Web Application
🏁CTF Based Learning
→ CTFTime
→ PicoCTF
→ 247CTF
→ Hackthissite
→ WeChall
→ W3challs
→ Hacker101
→ IO wargame
Read 11 tweets
8 Dec 21
🐧Linux Utility🧰 Commands
47. gzip
The gzip command is used to reduce the file size. It is a compressing tool. It replaces the original file by the compressed file having '.gz' extension.
By default the gzip will delete the original files after compressing them. If you don't want the files to get deleted you use the -d option. Image
Read 30 tweets
8 Dec 21
70+ basic Linux🐧 commands explained.

Hey everyone👋! I am finally BACK with another Linux🐧 thread!

In today's thread🧵, I will be going over basics commands every Linux user should know !

A Mega🧵 thread
Have grouped these commands so you can easily Identify their usage.

- Linux Manual/Help Commands
- Linux File Commands
- Linux Directory Commands
- Linux File Content Commands
- Linux User Commands
- Linux Filter Commands
- Linux Utility Commands
- Linux Networking Commands
Pro tip💡: There is no need to memorize all the commands options/arguments, just make use of the help menu or manual pages to find the usage of a specific command/option you want.

continue to read👇
Read 59 tweets
26 Nov 21
A thread of my Linux threads🧵
1. Useful Linux🐧 Terminal Keyboard⌨️ Shortcut Keys To Boost🚀 Your Productivity📈

2. Basic Linux 🐧Commands📜 For Text Manipulation.

Read 20 tweets
24 Nov 21
Simple Bash/ZSH GOD-LIKE History Tricks Every Linux User Should Know!

A thread 🧵

Hello everyone👋. For today's Linux thread🐧, I'll be showing some GOD-LIKE bash/zsh history tricks which will save you plenty of time⏰ and doing your day to day tasks on the Linux terminal. Image
Effectively using bash history will save you plenty of time in the Linux terminal. Not only this will save you plenty of time, but it will also make your life much easier when you are using the Linux Terminal to perfom day to day tasks as regular user, penterser, dev or sysadmin.
1⃣View the Bash History
The simplest way to view commands you have used earlier is to use the history bash built in command. Image
Read 22 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(