Skip to content

Instantly share code, notes, and snippets.

View viz-prakash's full-sized avatar

Vijay Prakash viz-prakash

  • USA
View GitHub Profile
@MattPD
MattPD / analysis.draft.md
Last active May 30, 2024 08:11
Program Analysis Resources (WIP draft)
@krsna1729
krsna1729 / scapy-arp-send.md
Created June 1, 2019 00:02
how to send arp request using scapy
>>> pkt=Ether(dst="ff:ff:ff:ff:ff:ff")/ARP(pdst="198.18.0.2", hwsrc="7a:6c:00:af:eb:89")
>>> pkt.show()                                                                                                                                                                                  ###[ Ethernet ]###
  dst       = ff:ff:ff:ff:ff:ff
  src       = 7a:6c:00:af:eb:89
  type      = 0x806
###[ ARP ]###
     hwtype    = 0x1
     ptype     = 0x800
     hwlen     = None
@TarlogicSecurity
TarlogicSecurity / kerberos_attacks_cheatsheet.md
Created May 14, 2019 13:33
A cheatsheet with commands that can be used to perform kerberos attacks

Kerberos cheatsheet

Bruteforcing

With kerbrute.py:

python kerbrute.py -domain <domain_name> -users <users_file> -passwords <passwords_file> -outputfile <output_file>

With Rubeus version with brute module:

@mvadu
mvadu / upnpPortMapper.sh
Created March 30, 2019 02:13
THis script uses upnp client (upnpc) to talk to router and open ports
#!/bin/bash
#~/bin/upnpPortMapper.sh
#sudo apt-get install miniupnpc
#crontab -l | grep upnp || echo $(crontab -l ; echo '*/5 * * * * ~/bin/upnpPortMapper.sh >/dev/null 2>&1') | crontab -
export LC_ALL=C
router=$(ip r | grep default | cut -d " " -f 3)
gateway=$(upnpc -l | grep "desc: http://$router:[0-9]*/rootDesc.xml" | cut -d " " -f 3)
ip=$(upnpc -l | grep "Local LAN ip address" | cut -d: -f2)
@jboner
jboner / latency.txt
Last active June 2, 2024 11:03
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD