Skip to content

Instantly share code, notes, and snippets.

View Ana06's full-sized avatar

Ana María Martínez Gómez Ana06

View GitHub Profile
@Ana06
Ana06 / idagui.cfg
Last active June 3, 2020 17:16
Enable IDA external help: With Ctrl-F1 IDA shows the man page of the Windows API function or assembly x86 instruction that matches the word under the cursor 🎉
// With Ctrl-F1 IDA shows the man page of the Windows API function or assembly
// instruction that matches the word under the cursor
// Steps to set it up:
// 1. Install WinHlp32.exe: https://www.microsoft.com/en-us/download/details.aspx?id=91
// 2. Download the desired .hlp file. For example:
// - x86 instructions help file: http://pedram.redhive.com/openrce/opcodes.hlp
// - win32.hlp: https://www.modula2.org/win32tutor/references.php
// Add to C:\Program Files\IDA Pro 7.4\cfg\idagui.cfg:
HELPFILE = "C:\\Program Files\\IDA Pro 7.4\\win32.hlp"
@Ana06
Ana06 / email_statistics.rb
Last active April 24, 2020 13:20
Email statistics with Ruby and mu
# Copyright (C) 2020 Ana Maria Martinez Gomez <anamaria@martinezgomez.name>
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
@Ana06
Ana06 / snort-log-report.rb
Created April 8, 2020 15:22
Ruby script that parses a Snort log and prints statistics
# Copyright (C) 2020 Ana Maria Martinez Gomez <anamaria@martinezgomez.name>
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
@Ana06
Ana06 / merge_gpx
Created June 13, 2019 18:22
Small script to merge two gpx routes (1.gpx for the first part and 2.gpx for the second) into route.gpx
sed -i '/^\s*<\/trk>$/Q' 1.gpx
sed -i '1,/^\s*<trk>/d' 2.gpx
cat 1.gpx 2.gpx > route.gpx