Skip to content

Instantly share code, notes, and snippets.

View WWelna's full-sized avatar
🥷
( ͡° ͜ʖ ͡°)

William Welna WWelna

🥷
( ͡° ͜ʖ ͡°)
View GitHub Profile
@WWelna
WWelna / wifi-bridge.sh
Created September 2, 2021 19:00
Boot Startup Script - /etc/wifi-bridge.sh
#!/bin/bash -e
ip_address="192.168.2.1"
netmask="255.255.255.0"
eth="eth0"
wlan="wlan0"
iptables -t nat -A POSTROUTING -o $wlan -j MASQURADE
iptables -A FORWARD -i $wlan -o $eth -m state --state RELATED,EXTABLISHED -j ACCEPT
iptables -A FORWARD -i $eth0 -o $wlan -j ACCEPT
@WWelna
WWelna / eth0.conf
Created September 2, 2021 17:47
The DNSMASQ config for eth0 - /etc/dnsmasq.d/eth0.conf
interface=eth0
listen-address=192.168.2.1
bind-interfaces
server=8.8.8.8
domain-needed
bogus-priv
dhcp-range=192.168.2.2,192.168.2.100,12h
@WWelna
WWelna / breachinfo-gabstats.py
Created March 5, 2021 04:19
DDoSecrets - Gab Stats - Breach Information
#!/bin/python3
import orjson as json
pass_count = 0
email_count = 0
emailandpass_count = 0
justemail_count = 0
justpass_count = 0
with open('/xs/Archive-Gab/ddosecrets_gabdump.json') as f:
@WWelna
WWelna / gab-missingposts-calc.py
Last active March 5, 2021 04:00
DDoSecrets - Gab Stats - Estimate of Missing Data
#!/bin/python3
import orjson as json
usercounts = {}
with open('/xs/Archive-Gab/ddosecrets_gabdump.json') as f:
for line in f:
try:
j = json.loads(line)
if j['__DBEXPORT__'] == 'accounts':
@WWelna
WWelna / stats-postsperday.py
Created March 3, 2021 16:50
DDoSecrets - Gab Stats - Posts per Day
#!/bin/python3
import orjson as json
from datetime import datetime
import dateutil.parser
import collections
dates = {}
with open('/xs/Archive-Gab/ddosecrets_gabdump.json') as f:
for line in f:
@WWelna
WWelna / DDoSecrets-GabStats-PostsPerDay.json
Created March 3, 2021 16:35
DDoSecrets Gab Dump - Posts per Day - 2016-08-10 to 2021-02-19
{
"2016-08-10":10,
"2016-08-11":9,
"2016-08-12":14,
"2016-08-13":3,
"2016-08-14":13,
"2016-08-15":41,
"2016-08-16":555,
"2016-08-17":598,
"2016-08-18":830,
@WWelna
WWelna / json2csv.py
Created March 3, 2021 11:51
JSON to CSV
#!/bin/python3
# Copyright (C) 2021 William Welna (wwelna@occultusterra.com)
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@WWelna
WWelna / stats-usercreation.py
Created March 3, 2021 11:28
DDoSecrets - Gab Stats - User Creation
#!/bin/python3
import orjson as json
from datetime import datetime
import dateutil.parser
import collections
dates = {}
with open('/xs/Archive-Gab/ddosecrets_gabdump.json') as f:
for line in f:
@WWelna
WWelna / DDoSecrets-GabStats-UserCreation.json
Created March 3, 2021 10:31
DDoSecrets Gab Dump - User Account Creations per Day - 2016-08-10 to 2021-02-19
{
"2016-08-10":29,
"2016-08-11":16,
"2016-08-12":7,
"2016-08-13":5,
"2016-08-14":4,
"2016-08-15":20,
"2016-08-16":113,
"2016-08-17":32,
"2016-08-18":51,
@WWelna
WWelna / stats.py
Created March 3, 2021 07:53
stats.py for DDoSecrets Gab - Account posting stats
#!/bin/python3
import orjson as json
accounts_have_posted = 0
accounts_have_posted_10 = 0
no_data = 0
with open('/xs/Archive-Gab/ddosecrets_gabdump.json') as f:
for line in f:
j = json.loads(line)