Skip to content

Instantly share code, notes, and snippets.

View davidlares's full-sized avatar
🎯
Focusing

David E Lares S davidlares

🎯
Focusing
View GitHub Profile
@willurd
willurd / web-servers.md
Last active July 10, 2025 21:59
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@tomasinouk
tomasinouk / snat_dnat_advantech.md
Last active May 27, 2025 15:07
examples of SNAT, DNAT with iptables for Advantech, Conel routers, with comments (probably will work on other routers where iptables can be manipulated, care needs to be taken on applying these commands after reboot).

Some examples of SNAT, DNAT with iptables with comments

mainly used in start-up script

How to test 'safely'

When we play with iptables aka firewall we might end up in situation, where we execute rule, which has unforseen impact - lock yourself out. Recovering from this situation is necessity.

How to:

  • Enable reboot via SMS.
  • Test all commands in shell first before putting them into Start-up script. This way the command will be wiped out, when unit is rebooted.

masquarade all outgoing packets to be WLAN0 IP

How to pass the OSCP

  1. Recon
  2. Find vuln
  3. Exploit
  4. Document it

Recon

Unicornscans in cli, nmap in msfconsole to help store loot in database.

@mubix
mubix / infosec_newbie.md
Last active July 10, 2025 04:30
How to start in Infosec
@404NetworkError
404NetworkError / Windows_Functions_in_Malware.md
Last active May 29, 2025 16:45
Concise Windows Functions in Malware Analysis List
@av-gantimurov
av-gantimurov / resources.md
Last active November 27, 2024 20:04
List of resources for malware analysts