This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem Set up the Visual Studio 2013 compiler environment variables | |
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x64 | |
cl -c lib.cpp | |
cl runner.cpp /link user32.lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- original service config --- | |
[Unit] | |
Description=PowerDNS Authoritative Server | |
Documentation=man:pdns_server(1) man:pdns_control(1) | |
Documentation=https://doc.powerdns.com | |
Wants=network-online.target | |
After=network-online.target mysqld.service postgresql.service slapd.service mariadb.service | |
[Service] | |
ExecStart=/usr/sbin/pdns_server --guardian=no --daemon=no --log-timestamp=no --disable-syslog --write-pid=no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from pwn import * | |
import sys | |
strlen_got = 0x602040 | |
exit_got = 0x602070 | |
from struct import * | |
offsets = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import unittest | |
class LogParser(object): | |
""" | |
Some the regular expressions are 'based' on Django's | |
Validators | |
""" | |
IPV4_RE = (r"(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)" |