Skip to content

Instantly share code, notes, and snippets.

View oldkingcone's full-sized avatar
🏠
Working from home

oldkingcone oldkingcone

🏠
Working from home
View GitHub Profile
@oldkingcone
oldkingcone / start_pwncat
Last active June 20, 2022 00:27
pwncat helper script
#!/bin/bash
if test $# -lt 2; then
echo "Cannot continue"
echo "Missing args."
echo "example: $0 [l] || [i] port interface"
exit
fi
if [ -z $2 ]; then
@oldkingcone
oldkingcone / check_net
Created May 24, 2022 16:25
check parrot OS network connection, create missing file and retest network connection.
#!/bin/bash
clear
while :; do
ping -c1 google.com
if [[ $? -eq 0 ]]; then
echo "Connected!"
break
else
clear
@oldkingcone
oldkingcone / logon_check.py
Created January 15, 2022 02:52
checks logon, if connecting ip is not allowed to connect, it will immediately add a drop rule dropping the connection effectively blocking the connecting ip address.
#!/usr/bin/env python3
from os import getenv, putenv, system
from requests import post
from sys import argv
from certifi import where
from subprocess import getoutput
from os.path import isfile
# add allowed clients here.
allowed_clients = [
@oldkingcone
oldkingcone / leakix
Created July 15, 2021 13:59
Leakix script to run from your command line. this is quite useful when you have only the CLI to work with.
#!/bin/bash
if test $# -lt 1;then
echo "Missing params you dunce. If you have forgotten, use h to print the help menu."
else
case $1 in
"h")
echo $0 "[h/l/q] host or protocol"
echo "If using q, you will need to specify the url encoded version. I am lazy and havent gotten around to adding in an array to test for this."
echo "h displays this menu and exits."
@oldkingcone
oldkingcone / scamblaster5000.py
Created June 19, 2019 15:56
Scamm Blaster, you will have to find out how the post data is recieved. But this is designed to submit false data to an attempted scammers phishing page, ruining their attempts at collecting valid creds. This idea was taken from a youtube video (sorry man i cannot find your video :( ) i am not trying to steal this idea, its brilliant, but needed…
#!/usr/bin/env python3
# I saw this on a youtube video, and figured i would make some adjustments, and improve upon it.
# This is designed to fill the douchebags database with junk data, making sure the phishing campaign is not successful.
# Do have fun with this.
import requests
import os
import random
import string
from faker import Faker
import tweepy
from time import sleep
# creds.py is a custom file that holds all of your consumer keys and API keys. you will need to make it.
from creds import *
import os
from datetime import datetime as dt
import random
auth = tweepy.OAuthHandler(consumer_key=consumer_key, consumer_secret=consumer_secret)
auth.set_access_token(access_key, access_secret)
@oldkingcone
oldkingcone / prologue.sh
Last active April 3, 2018 02:05
fun interactive bash script.
#! /bin/bash
# fun interactive bash script.
# copy this text into a text file.
# Two households, both alike in dignity,
# In fair Verona, where we lay our scene,
# From ancient grudge break to new mutiny,
# Where civil blood makes civil hands unclean.
# From forth the fatal loins of these two foes

Keybase proof

I hereby claim:

  • I am oldkingcone on github.
  • I am oldkingcone (https://keybase.io/oldkingcone) on keybase.
  • I have a public key ASBKJWLO-VA0ghAj0AGPQIMPORufvf9cO8Q_WMiFdqnzsAo

To claim this, I am signing this object:

@oldkingcone
oldkingcone / Final.py
Created December 10, 2017 03:30
Final Project, creates an SQL db, writes user generated info to it.
#! /usr/bin/env python3
# Turtle gui with chinese paragraphs
# oldkingcone_lab11
# oldkingcone
# guns up lets do this.
try:
#from selenium import webdriver
import sqlite3
from pathlib import Path
@oldkingcone
oldkingcone / Final_Project_birth_info.py
Created November 3, 2017 09:04
Final school project skeleton, need to add TKinter gui to this.
#! /usr/bin/env python3
# lab04_paraprinting.py
# oldkingcone
# Guns up, lets do this leeroy.
# LeeroyJenkins, circa 2005
import datetime
import os
import webbrowser