Skip to content

Instantly share code, notes, and snippets.

Avatar
📰
Writing article

Vadim "Oxyd" Priluzkiy Oxyd76

📰
Writing article
View GitHub Profile
@Oxyd76
Oxyd76 / gist:49fbe748bd8ea3089eede503bac226d3
Created Dec 5, 2021 — forked from mattm7n/gist:1405067
Monitor DHCP traffic with tcpdump
View gist:49fbe748bd8ea3089eede503bac226d3
# Monitoring on interface eth0
tcpdump -i eth0 -n port 67 and port 68
View yggspoof.py
peers = [
'tcp://ygg.cofob.ru:80',
'tcp://ygg-ru.cofob.ru:18000',
'tcp://46.151.26.194:60575'
]
@Oxyd76
Oxyd76 / Sort.rexx
Created Dec 4, 2016
Sort numbers in every string of test.txt
View Sort.rexx
/* REXX (OS/2) */
Parse arg filename
call stream filename, 'C', 'Open'
Do while Lines(filename)
line = linein(filename)
Parse value line with left ' ' right
If left > right Then line = right || ' ' || left
pos=stream(filename, 'C', 'Seek -'Length(line)+2)
call lineout filename, line
End