23
u/Usiten May 26 '19
Cool guides ! Just to add on the python bit,
python -m SimpleHTTPServeris python2 ! For python3, use:
python -m http.server2
u/Alperoot May 26 '19
This hasn't been working for me, for some reason. I can see directories, but not download files.
3
u/Usiten May 27 '19
Those are not download links ! It's just a directory listing. You could right click and save link target (or somehing similar). Or, in a terminal, you could use wget or curl to do so !
1
21
u/misconfig_exe /r/cyber mod May 26 '19
I find http://cheat.sh/{insert-command-here} really useful. I use it often and find it much more helpful than man {command} for figuring out "how tf do you actually use this thing" because it gives useful examples. Plus you can get to it without needing a browser: curl cheat.sh/{command} for example:
user@machine:~$ curl cheat.sh/nmap
# Single target scan:
nmap [target]
# Scan from a list of targets:
nmap -iL [list.txt]
# Scan port for all available A records (useful when multiple A records are returned by the DNS server)
nmap --script resolveall --script-args newtargets,resolveall.hosts=[target] -p [port]
# iPv6:
nmap -6 [target]
# OS detection:
nmap -O --osscan_guess [target]
# Save output to text file:
nmap -oN [output.txt] [target]
# Save output to xml file:
nmap -oX [output.xml] [target]
# Scan a specific port:
nmap -p [port] [target]
# Do an aggressive scan:
nmap -A [target]
# Speedup your scan:
# -n => disable ReverseDNS
# --min-rate=X => min X packets / sec
nmap -T5 --min-parallelism=50 -n --min-rate=300 [target]
# Traceroute:
nmap -traceroute [target]
# Ping scan only: -sP
# Don't ping: -PN <- Use full if a host don't reply to a ping.
# TCP SYN ping: -PS
# TCP ACK ping: -PA
# UDP ping: -PU
# ARP ping: -PR
# Example: Ping scan all machines on a class C network
nmap -sP 192.168.0.0/24
# Force TCP scan: -sT
# Force UDP scan: -sU
# Use some script:
nmap --script default,safe
# Loads the script in the default category, the banner script, and all .nse files in the directory /home/user/customscripts.
nmap --script default,banner,/home/user/customscripts
# Loads all scripts whose name starts with http-, such as http-auth and http-open-proxy.
nmap --script 'http-*'
# Loads every script except for those in the intrusive category.
nmap --script "not intrusive"
# Loads those scripts that are in both the default and safe categories.
nmap --script "default and safe"
# Loads scripts in the default, safe, or intrusive categories, except for those whose names start with http-.
nmap --script "(default or safe or intrusive) and not http-*"
# Scan for the heartbleed
# -pT:443 => Scan only port 443 with TCP (T:)
nmap -T5 --min-parallelism=50 -n --script "ssl-heartbleed" -pT:443 127.0.0.1
# Show all informations (debug mode)
nmap -d ...
# Discovert DHCP information on an interface
nmap --script broadcast-dhcp-discover -e eth0
user@machine:~$4
u/WishingWasp Jul 24 '19
This is extremely useful! I learn so much better by looking at examples!
Thank you for posting this
18
u/ImTehCookie May 26 '19
Now if only I was competent at Linux, then I could really get somewhere lol
19
u/gravity_has_me_down May 26 '19
Check out “OverTheWire: Bandit” if you are interested in getting started.
4
2
u/SirFireball May 28 '19 edited May 28 '19
You can also use rm -rf / to make your computer faster /s
2
u/ATTACKERSA May 28 '19
Sure . And which moisturizer do you use to look like an assface?
1
u/SirFireball May 28 '19
I think it’s called uh... sarcasm, or something. I forget. You should try the one called “sense of humor”
0
u/ATTACKERSA May 28 '19
You can vomit your "sence of ........" On some other subreddit. This post is educational.
1
u/lexm May 28 '19
Funny how you replied only to this comment and not the ones calling you out for lifting someone else's work without giving them credit...
0
u/ATTACKERSA May 28 '19
Its on internet And Its for educational purpose. Only stupid one's would raise their voices.
1
u/hitmanactual121 May 30 '19
One that you stole. Give credit you lamer.
0
u/ATTACKERSA May 30 '19
Credit : lamer. Ps. Gfys
1
u/hitmanactual121 May 30 '19
Let me fix that for you. Credit: Julia Evans, URL: https://wizardzines.com/zines/bite-size-networking/
If your going to repost cool stuff you find to disseminate it to the community that's fine of course, but don't be a punk and pass it off as your own work. Thievery and dishonestly has no place in the information security industry. You should know better.
0
u/ATTACKERSA May 30 '19
I dont give a rats ass about the source. Its the information that matters. If its accurate and is available on internet and unless i am making money out of it... Keep your stupid ironic thoughts to yourself.
3
u/CommonMisspellingBot May 28 '19
Hey, ATTACKERSA, just a quick heads-up:
sence is actually spelled sense. You can remember it by ends with -se.
Have a nice day!The parent commenter can reply with 'delete' to delete this comment.
1
u/BooCMB May 28 '19
Hey /u/CommonMisspellingBot, just a quick heads up:
Your spelling hints are really shitty because they're all essentially "remember the fucking spelling of the fucking word".And your fucking delete function doesn't work. You're useless.
Have a nice day!
1
5
4
u/hoax1337 May 26 '19
ifconfig
route
Readies pitchfork OMG THOSE ARE LONG DEPRECATED
ip
puts down pitchfork
3
3
2
1
1
1
u/casual_sinister May 26 '19
This is awesome. It would be great if we had something similar around git too.
1
u/BendingUnit15 May 26 '19
It's a very good list but I feel like rsync was short changed on its description.
1
1
1
1
1
u/QneEyedJack Jan 23 '24
I know this is ancient, but what's going on with the overlay looking thing in the upper right? The image quality is too low to make out anything when enlarged.
(and for some reason, my machine balked at all requests to "enhance"🤡)
1
u/commsbloke Apr 28 '23
I have just found "ab". Its been on a number of my machines for ever. Didn't know it existed.
Apache Benchmark
1
116
u/BlueZarex May 26 '19
Thank Julia Evans for this. OP stole it from her.