Skip to content

Instantly share code, notes, and snippets.

http://pwndizzle.blogspot.my/2014/12/crest-crt-exam-preparation.html
https://www.exploit-db.com/docs/28553.pdf
https://css.csail.mit.edu/6.858/2014/readings/return-to-libc.pdf
http://blog.fkraiem.org/2013/10/26/return-to-libc/
http://www.cis.syr.edu/~wedu/seed/Labs/Vulnerability/Return_to_libc/Return_to_libc.pdf
netdiscover -r 192.168.0.0/24
>> Machine Name, IP, MAC (csv file)
Enter name of machine:
Enter ip of the machine:
nMap Fast scan with version
nMap Full scan with version
<a href="www.google.com"> link here </a>
@keithrozario
keithrozario / randomStrings.py
Created December 21, 2017 02:11
generate a random bunch of strings for captcha
import string
from random import choice
alphabet = string.ascii_letters + string.digits
captcha = "".join(choice(alphabet) for x in range(1, 4))
print(captcha)
import logging
# Logging setup
logging.basicConfig(filename='log.txt',
filemode='a',
level=logging.INFO,
format='%(asctime)s %(message)s',
datefmt='%m/%d/%Y %I:%M:%S %p')
if __name__ == "__main__":
@keithrozario
keithrozario / divideFolders.py
Created March 14, 2018 15:50
Split files between folders
import argparse
import os
import logging
import shutil
from pathlib import Path
""" Assumes files end with _xx.jsonl
where xx is an integer (that is at least 1 digit
"""
@keithrozario
keithrozario / load_jsonl_into_dynamo.py
Last active September 12, 2018 09:46
Load JSONL into DynamoDB
import json
import logging
import boto3
import customConfig
import os
import argparse
import datetime
""" Loading JSONL file into DynamoDB, customConfig.table_name has the DynamoDB Table Name"""
@keithrozario
keithrozario / copy.py
Last active April 13, 2018 14:50
Copy files from S3 to another folder
import requests
import json
import boto3
import os
bucket_name = 'files.siteaudit.sayakenahack.com'
file_prefix = 'scan'
keys = []
client = boto3.client('s3')
s3 = boto3.resource('s3')
@keithrozario
keithrozario / delete_tweets.py
Last active April 22, 2018 10:53
Delete all tweets older than x days
import tweepy
from tweepy import TweepError
from datetime import datetime, timedelta
import logging
import json
from custom_config import consumer_key, consumer_secret, access_key, access_secret
tweets_delete = []
max_age = 90 # in days
@keithrozario
keithrozario / search_user.py
Created April 22, 2018 11:05
Search for a Users Tweet on twitter
import tweepy
from custom_config import get_attr_from_list
from custom_config import consumer_key, consumer_secret, access_key, access_secret
def write_tweets_to_file(screen_name):
ids = []
x = 1
with open(screen_name.strip() + '.csv', 'w') as file: