Skip to content

Instantly share code, notes, and snippets.

View saturn99's full-sized avatar
🧑‍🦳
:)

King Louie saturn99

🧑‍🦳
:)
View GitHub Profile
#!/usr/bin/perl
$|++;
use Net::DNS;
use Net::DNS::Nameserver;
my $res = Net::DNS::Resolver->new;
$res->nameservers('4.2.2.4');
sub reply_handler {
my ($qname, $qclass, $qtype, $peerhost,$query,$conn) = @_;
my ($rcode, @ans, @auth, @add);
@saturn99
saturn99 / farsi_alef-ye-9-0.hex.txt
Created October 15, 2016 15:09
کد هگز حروف فارسی و اعداد
d8 a7 0a d8 a8 0a d9 be 0a d8 aa 0a d8 ab 0a d8
ac 0a da 86 0a d9 87 0a d8 ae 0a d8 af 0a d8 b0
0a d8 b1 0a d8 b2 0a da 98 0a d8 b3 0a d8 b4 0a
d8 b5 0a d8 b6 0a d8 b7 0a d8 b8 0a d8 b9 0a d8
ba 0a d9 81 0a d9 82 0a da a9 0a da af 0a d9 84
0a d9 85 0a d9 86 0a d9 88 0a d9 87 0a db 8c 0a
db b1 0a db b2 0a db b3 0a db b4 0a db b5 0a db
b6 0a db b7 0a db b8 0a db b9 0a db b0 0a
#printf "$(cat hexalphabet.txt | sed -e 's_ _\\x_g' | sed -e ':a;N;$!ba;s_\n__g')
/*
🐼
*/
#include <stdio.h>
int main(){
printf("%c%c%c%c\n"
,0xf0,0x9f,0x90,0xbc);
return 0x12;
}
@saturn99
saturn99 / breachcompilation.txt
Created December 24, 2017 21:04
1.4 billion password breach compilation wordlist
wordlist created from original 41G stash via:
grep -rohP '(?<=:).*$' | uniq > breachcompilation.txt
Then, compressed with:
7z a breachcompilation.txt.7z breachcompilation.txt
Size:
@saturn99
saturn99 / ESP8266 AT Commands for Creating a UDP Server.md
Created April 25, 2018 22:34 — forked from ah-cog/ESP8266 AT Commands for Creating a UDP Server.md
ESP8266 AT command sequence to start a UDP server with Espressif AT firmware v0.22.

Create a UDP Server to Listen for Incoming Broadcasts

The following sequence of commands will (1) start a TCP server listening for traffic on port 80 and (2) start a UDP server and listen for incoming UDP packets from all addresses.

AT

OK
AT+CWMODE_CUR=3

OK

@saturn99
saturn99 / fakebeacon.py
Created August 8, 2018 16:16 — forked from tintinweb/fakebeacon.py
scapy-fakebeacon - spawn lots of fake wifi access points by injecting beacon frames with scapy (essid)
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# source: https://www.4armed.com/blog/forging-wifi-beacon-frames-using-scapy/
#
# requires:
# radiotap supported wifi nic/driver (frame injection) (works fine with Ralink RT2571W)
# iwconfig $iface mode monitor
# iw dev $iface set channel $channel
# or
@saturn99
saturn99 / gmail_to_slack.js
Created August 13, 2018 02:41 — forked from andrewmwilson/gmail_to_slack.js
Google Apps Script: Send Gmail emails to Slack
// You will also need to create a gmail filter to add the 'send-to-slack' label
// to any emails you want sent to slack
function sendEmailsToSlack() {
var label = GmailApp.getUserLabelByName('send-to-slack');
var messages = [];
var threads = label.getThreads();
for (var i = 0; i < threads.length; i++) {
messages = messages.concat(threads[i].getMessages())
@saturn99
saturn99 / instagram_scraping_test.py
Created August 25, 2018 22:49 — forked from winder/instagram_scraping_test.py
Instagram Scraper April 10 2018
#!/usr/bin/env python3
import requests
import urllib.parse
import hashlib
import json
#CHROME_UA = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36'
CHROME_UA = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36'
def getSession(rhx_gis, csrf_token, variables):
@saturn99
saturn99 / sublime_text_patch.md
Created April 10, 2019 23:42 — forked from deyixtan/sublime_text_patch.md
Sublime Text Patching Guide

Automated Patching

Download slt.py python script (supports multiple build) from this repository.

Usage

python slt.py <"sublime_text file path">


Manual Patching