Skip to content

Instantly share code, notes, and snippets.

View sgeto's full-sized avatar

Ali Abdulkadir sgeto

View GitHub Profile
@sgeto
sgeto / mirror.py
Created December 23, 2018 11:26 — forked from yy0c/mirror.py
OpenWrt Setup
from flask import Flask,send_from_directory
import os
UPLOAD_FOLDER = os.getcwd()
application = app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
@app.route('/snapshots/trunk/ar71xx/packages/')
var ua = navigator.userAgent;
if( ua.indexOf("Android") >= 0 )
{
var androidversion = parseFloat(ua.slice(ua.indexOf("Android")+8));
if (androidversion < 2.3)
{
...
}
}
@sgeto
sgeto / cmder_split.md
Created September 8, 2018 02:02 — forked from jtferns/cmder_split.md
Create simple 4-way split of Cmder for windows cmd prompting...

Setup

  1. Launch Cmder
  • step1
  1. Right-click on the console tab
  2. Select New Console... to launch the ConEmu console create dialog
  • step2
  1. In the New Console Split section, select the To right radio option click the Start button
  • step3
  1. Congrats, you now have a half-n-half or 50-50 horizontal split!
@sgeto
sgeto / make-chr.sh
Created September 6, 2018 01:46 — forked from stroebs/make-chr.sh
Install Mikrotik CHR on a Digital Ocean droplet
wget http://download2.mikrotik.com/routeros/6.40.5/chr-6.40.5.img.zip -O chr.img.zip && \
gunzip -c chr.img.zip > chr.img && \
apt-get update && \
apt install -y qemu-utils pv && \
qemu-img convert chr.img -O qcow2 chr.qcow2 && \
qemu-img resize chr.qcow2 `fdisk /dev/vda -l | head -n 1 | cut -d',' -f 2 | cut -d' ' -f 2` && \
modprobe nbd && \
qemu-nbd -c /dev/nbd0 chr.qcow2 && \
echo "Give some time for qemu-nbd to be ready" && \
sleep 2 && \
@sgeto
sgeto / gist:ce9b7115330e12a4d2c06807cb0dcff9
Created September 5, 2018 05:54 — forked from dafthack/gist:8aa4ff60cd9352448a372ce1a7b2e27e
Easy Metasploit Install on Windows Subsystem for Linux
Steps to install Metasploit on Windows 10 using the Windows Subsystem for Linux
1.) Enable Developer Mode
C:\> reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
2.) Enable Windows Subsystem for Linux
C:\> DISM /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux
3.) Reboot
@sgeto
sgeto / lphosts
Created July 14, 2018 01:33
luckypatcher's hosts file
This file has been truncated, but you can view the full file.
127.0.0.1 localhost
#Lucky Patcher block Ads start#
127.0.0.1 adad.ir
127.0.0.1 dgad.ir
127.0.0.1 cs07.trafmag.com
127.0.0.1 cs06.trafmag.com
127.0.0.1 cs05.trafmag.com
127.0.0.1 cs04.trafmag.com
127.0.0.1 cs03.trafmag.com
127.0.0.1 cs02.trafmag.com
@sgeto
sgeto / Makefile.MSVC
Created May 26, 2018 03:06 — forked from gvanem/Makefile.MSVC
GNU makefile for Pylibnet and MSVC.
#
# GNU Makefile for libnet.pyd (MSVC)
# Only Python 2.7 have been tested.
#
# By G. Vanem <[email protected]> 2013.
#
#
# Options and paths. Change to suite your setup.
#
@sgeto
sgeto / Makefile.Windows
Created May 26, 2018 02:57 — forked from gvanem/Makefile.Windows
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 <[email protected]> 2011 - 2018.
#
THIS_FILE = Makefile.Windows
#
# Comment this away to NOT rebuild too many things when $(THIS_FILE) changes.
#
MDEPEND = $(THIS_FILE)
@sgeto
sgeto / ndiscap-netsh.cpp
Created May 22, 2018 07:43 — forked from egtra/ndiscap-netsh.cpp
"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
@sgeto
sgeto / win32-stuff.c
Created May 8, 2018 23:52 — forked from gvanem/win32-stuff.c
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 <[email protected]> 2014.
*/