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 / directory_traversal.py
Created October 7, 2017 21:47
Traverse Directories, has no remote storage capability EG exporting to remote server. Saves found data inside a CSV file. Get an error on get_tree_size function.
import os
import sys
import grp
import pwd
from datetime import datetime as dt
os.system('clear')
os.chdir('/home')
os.system('pwd')
path2 = ['/', '/home/*', '/bin', '/usr', '/var', '/tmp', '/lib', '/lib64', '/etc', '/sys', '/dev', '/media', '/mnt', '/srv', '/sbin', '/etc']
@oldkingcone
oldkingcone / runuser.pl
Created October 12, 2017 01:06
Returns user at run time, will log into seperate file and leave human readable date/time with real username and logged in username. Add line ' perl runuser.pl' to your bashrc file to have it run upon TTY/Shell interaction.
#! /usr/tmp/env perl
use strict;
use 5.010;
my $user = $ENV{USER};
my $logname = $ENV{LOGNAME};
my $file_directory = "./ranby.txt";
# my $second_log = "./second.txt";
my $filename = "ranby.txt";
@oldkingcone
oldkingcone / directory_traversal.py
Created October 12, 2017 01:12
Updated Directory_traversal.py script, fixed get_tree_size function errors. Will print errors into log file
import os
import sys
import grp
import pwd
'''
There are 2 functions calling and doing the same thing. The accurate scan seems to preform much better with large file systems.
automation for ls /* in the event you want all output logged and already handled for you.
'''
os.system('clear')
@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
@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

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 / 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
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 / 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
@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."