Skip to content

Instantly share code, notes, and snippets.

View windows98SE's full-sized avatar
:shipit:
it's good, to be bad.

windows98SE windows98SE

:shipit:
it's good, to be bad.
View GitHub Profile
@windows98SE
windows98SE / mikrotik.py
Created April 26, 2017 18:01
mikrotik basic login script
#!/usr/bin/env python
'''
mikrotik basic login script
'''
import re
import requests
from md5 import md5
USER = 'i am groot'
@windows98SE
windows98SE / decode.py
Created September 4, 2016 16:37
test
#/usr/bin/python3
import base64
data = b''
with open("decode.txt", "wb") as fh:
fh.write(base64.decodestring(data))
function Invoke-UACBypass {
<#
.SYNOPSIS
Bypasses UAC on Windows 10 by abusing the SilentCleanup task to win a race condition, allowing for a DLL hijack without a privileged file copy.
Author: Matthew Graeber (@mattifestation), Matt Nelson (@enigma0x3)
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
@windows98SE
windows98SE / scroll.py
Created August 26, 2015 06:48
Adafruit LCD scroll only line 2
#!/usr/bin/python
import time
import Adafruit_CharLCD as LCD
lcd_columns = 16
lcd = LCD.Adafruit_CharLCDPlate()
lcd.set_backlight(0)
@windows98SE
windows98SE / mysql2sqlite.sh
Last active August 29, 2015 14:27 — forked from esperlu/mysql2sqlite.sh
MySQL to Sqlite converter
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite
@windows98SE
windows98SE / md5.js
Created June 11, 2015 19:43
JavaScript implementation of the RSA Data Security
/*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as defined in RFC 1321.
* Version 1.1 Copyright (C) Paul Johnston 1999 - 2002.
* Code also contributed by Greg Holt
* See http://pajhome.org.uk/site/legal.html for details.
*/
/*
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
@windows98SE
windows98SE / api.py.patch
Created May 23, 2015 15:18
[fix] LINE API function login ( api.py ) / new examples
@@ -55,7 +55,21 @@
After login, make `client` and `client_in` instance
to communicate with LINE server
"""
- raise Exception("Code is removed because of the request of LINE corporation")
+
+ self.transport = THttpClient.THttpClient(self.LINE_HTTP_URL)
+ self.transport_in = THttpClient.THttpClient(self.LINE_HTTP_IN_URL)
+
+ self.transport.setCustomHeaders(self._headers)
#!/bin/bash
# Slightly modified version from https://raw.githubusercontent.com/Nyr/openvpn-install/master/openvpn-install.sh
# Run with sudo ./openvpn-install.sh and not sudo sh ./openvpn-install.sh as read command has issues with external triggering of scripts
# OpenVPN road warrior installer for Debian, Ubuntu and CentOS
# This script will work on Debian, Ubuntu, CentOS and probably other distros
# of the same families, although no support is offered for them. It isn't
# bulletproof but it will probably work if you simply want to setup a VPN on
# your Debian/Ubuntu/CentOS box. It has been designed to be as unobtrusive and
# universal as possible.
@windows98SE
windows98SE / wpa_supplicant.conf
Created March 8, 2015 19:23
wpa_supplicant.conf for wpa2 (hidden ssid)
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
update_config=1
network={
mode=0
priority=1
scan_ssid=1
proto=WPA2
@windows98SE
windows98SE / cmdline.txt
Created March 8, 2015 19:22
cmdline.txt fix cgroup error
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 cgroup_enable=memory elevator=deadline rootwait