This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="www.google.com"> link here </a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
from random import choice | |
alphabet = string.ascii_letters + string.digits | |
captcha = "".join(choice(alphabet) for x in range(1, 4)) | |
print(captcha) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |