Skip to content

Instantly share code, notes, and snippets.

View sgeto's full-sized avatar

Ali Abdulkadir sgeto

View GitHub Profile
@pocke
pocke / symlink.sh
Created November 26, 2013 23:04
add symlink for busybox on Android(Nexus7)
@gvanem
gvanem / make-oui.py
Last active December 10, 2017 03:33
A script for tcpdump; generates a oui-generated.c from http://standards-oui.ieee.org/oui.txt and http://www.iana.org/assignments/enterprise-numbers
#!/usr/bin/env python
#
# Generates a 'oui-generated.c' for tcpdump.
#
from __future__ import print_function
import sys, os, time, re, getopt, codecs
OUI_URL = "http://standards-oui.ieee.org/oui.txt"
ENT_URL = "http://www.iana.org/assignments/enterprise-numbers"
@Cr4sh
Cr4sh / sprintf.c
Last active April 26, 2018 05:03
Position independent sprintf without dependencies
/**
* Declaration
*/
/*
'tfp_format' really is the central function for all tinyprintf. For each output character
after formatting, the 'putf' callback is called with 2 args:
- an arbitrary void* 'putp' param defined by the user and passed unmodified from 'tfp_format';
- the character;
@egtra
egtra / ndiscap-netsh.cpp
Created April 17, 2016 12:09
"netsh trace start caputre=yes traceFile=D:\packet.etl"の再現
/*
Copyright © 2016 Egtra
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
@gvanem
gvanem / Makefile.Windows
Last active May 26, 2018 02:57
A makefile for Ettercap supporting MSVC, clang-cl and MinGW (the latter is little tested). Ref: https://github.com/Ettercap/ettercap
#
# Ettercap NG Makefile for MinGW / cl / clang-cl.
# by G. Vanem <gvanem@yahoo.no> 2011 - 2018.
#
THIS_FILE = Makefile.Windows
#
# Comment this away to NOT rebuild too many things when $(THIS_FILE) changes.
#
MDEPEND = $(THIS_FILE)
@gvanem
gvanem / Makefile.MSVC
Last active May 26, 2018 03:06
GNU makefile for Pylibnet and MSVC.
#
# GNU Makefile for libnet.pyd (MSVC)
# Only Python 2.7 have been tested.
#
# By G. Vanem <gvanem@yahoo.no> 2013.
#
#
# Options and paths. Change to suite your setup.
#
@gvanem
gvanem / win32-stuff.c
Last active September 10, 2018 13:51
Win32-only functions to return extended information for network adapters. Used with "windump -Dv"
/*
* Winpcap stuff for Win32 only:
*
* 1) Simple trace function used by WINDUMP_TRACE() macro in netdissect.h.
* 2) Colourised 'ndo_printer'.
* 3) Low-level NDIS/Packet32 stuff that doesn't fit anywhere else.
*
* Written by G. Vanem <gvanem@yahoo.no> 2014.
*/
var ua = navigator.userAgent;
if( ua.indexOf("Android") >= 0 )
{
var androidversion = parseFloat(ua.slice(ua.indexOf("Android")+8));
if (androidversion < 2.3)
{
...
}
}
@muffycompo
muffycompo / coovachilli-build-steps-ubuntu-16.10.txt
Last active September 25, 2018 02:27
Building CoovaChilli 1.4 on Ubuntu 16.10
apt-get update
apt-get install -y g++ automake autoconf libtool libltdl-dev gengetopt make cmake libssl-dev
git clone https://github.com/coova/coova-chilli
git checkout 1.4
./bootstrap
@mjul
mjul / Microsoft.PowerShell_profile.ps1
Last active November 15, 2018 18:31
Visual Studio 2013 developer prompt for PowerShell
pushd 'c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC'
cmd /c "vcvarsall.bat&set" |
foreach {
if ($_ -match "=") {
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
}
}
popd
write-host "`nVisual Studio 2013 Command Prompt variables set." -ForegroundColor Yellow