Skip to content

Instantly share code, notes, and snippets.

@aaronsdevera
aaronsdevera / base3
Created January 23, 2024 05:47
base string utility in python
#! /usr/bin/python3
import sys
import os
INPUT = sys.argv[1]
RAW_STRING = None
if os.path.isfile(INPUT):
RAW_STRING = open(INPUT).read().strip()
else:
@aaronsdevera
aaronsdevera / at_stoner_tweets.json
Created December 17, 2020 02:42
Sample of tweets from @at_stoner, a now-removed Twitter account part of a suspected astroturfing campaign
{
"data": [
{
"in_reply_to_status_id": 1338540424387063809,
"created_at": "Mon Dec 14 20:59:23 +0000 2020",
"source": "<a href=\"http://twitter.com/download/android\" rel=\"nofollow\">Twitter for Android</a>",
"reply_count": 0,
"retweet_count": 0,
"in_reply_to_screen_name": "migueldeicaza",
"is_quote_status": false,
@aaronsdevera
aaronsdevera / theonewton15_tweets.json
Created December 17, 2020 02:35
Sample of tweets from @theonewton15, a now-removed Twitter account part of a suspected astroturfing campaign
{
"data": [
{
"in_reply_to_status_id": 1339390762954330112,
"created_at": "Thu Dec 17 02:06:49 +0000 2020",
"source": "<a href=\"https://mobile.twitter.com\" rel=\"nofollow\">Twitter Web App</a>",
"reply_count": 0,
"retweet_count": 0,
"in_reply_to_screen_name": "polotek",
"is_quote_status": false,
@aaronsdevera
aaronsdevera / mlhonesty2021_tweets.json
Created December 17, 2020 02:17
Sample of tweets from @mlhonesty2021, a now-removed Twitter account part of a suspected astroturfing campaign
{
"data": [
{
"in_reply_to_status_id": 1337781289253036032,
"created_at": "Sat Dec 12 17:43:13 +0000 2020",
"source": "<a href=\"http://twitter.com/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>",
"reply_count": 0,
"retweet_count": 0,
"in_reply_to_screen_name": "knightprowler71",
"is_quote_status": false,
@aaronsdevera
aaronsdevera / quackerjack69_tweets.json
Created December 17, 2020 02:16
Sample of tweets from @quackerjack69, a now-removed Twitter account part of a suspected astroturfing campaign
{
"data": [
{
"in_reply_to_status_id": 1337739743744782336,
"created_at": "Sat Dec 12 12:51:32 +0000 2020",
"source": "<a href=\"http://twitter.com/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>",
"reply_count": 0,
"retweet_count": 0,
"in_reply_to_screen_name": "DreFrome",
"is_quote_status": false,
@aaronsdevera
aaronsdevera / getSubmittedResults.py
Created October 31, 2020 23:45
Given a UUID from URLScan upload, script saves the screenshots for ML model training data: https://twitter.com/aaronsdevera/status/1322399067725426690
import requests
import json
import csv
import os
import sys
def printLog(msg,kind):
msgType = '[+]'
if kind == 1:
@aaronsdevera
aaronsdevera / gatherURLscan.py
Created October 31, 2020 22:49
Script to gather scans from urlscan.io, and save screenshots for ML model training data: https://twitter.com/aaronsdevera/status/1322399067725426690
import requests
import json
import csv
import os
def printLog(msg,kind):
msgType = '[+]'
if kind == 1:
msgType = '[!]'

Keybase proof

I hereby claim:

  • I am aaronsdevera on github.
  • I am aaronsdevera (https://keybase.io/aaronsdevera) on keybase.
  • I have a public key whose fingerprint is E45D A985 E8D7 7A41 0500 6A5B EBD5 5547 ABA6 A12A

To claim this, I am signing this object:

PRE CHANGE
@aaronsdevera
aaronsdevera / launchdradis.sh
Last active October 10, 2015 22:44
OSX DRADIS launcher. Launches redis, the DRADIS worker, and DRADIS app in separate windows, then informs you of the process PIDs and opens the web frontend in Safari.
osascript -e 'tell application "Terminal" to activate' -e 'tell application "Terminal" to do script "redis-server /usr/local/etc/redis.conf"' -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' -e 'tell application "Terminal" to do script "cd /Applications/dradis;./dradis-webapp && ./dradis-worker;" in tab 2 of window 1'
echo "REDIS running at:"
ps -ax | grep redis-server | tr -s ' ' | cut -d ' ' -f 2 | awk '{if(NR>1)print}'
echo "DRADIS running at:"
ps -ax | grep ruby | tr -s ' ' | cut -d ' ' -f 2 | awk '{if(NR>1)print}'
open -a Safari http://localhost:3000