Skip to content

Instantly share code, notes, and snippets.

View hackingbutlegal's full-sized avatar
💭
I may be slow to respond.

Jackie Singh hackingbutlegal

💭
I may be slow to respond.
View GitHub Profile
// THANK YOU 0xBANANA FOR THIS SOLANA NFT EDITION MINTER
// RUN THIS WITH 'node main.mjs' AT YOUR COMMAND LINE
import { Metaplex, keypairIdentity } from "@metaplex-foundation/js";
import { TokenStandard } from '@metaplex-foundation/mpl-token-metadata'
import { Connection, Keypair } from "@solana/web3.js";
import bs58 from "bs58";
const connection = new Connection(
"https://rpc.helius.xyz/?api-key=YOUR_API_KEY_GOES_HERE"
@hackingbutlegal
hackingbutlegal / gist:a37233367b43bfdce46a
Last active May 13, 2022 23:42
Awk script for device discovery
#
# Class C device discovery in under 5 seconds.
# Notice that it will display information on any MAC address that nmap knows about. It's helpful to keep this updated.
# You can also add any MAC address OIDs that are newer or unknown to the file /usr/share/nmap/nmap-mac-prefixes.
#
# How to call this script:
# nmap -n -sP --excludefile $PROJECT_ROOT/output/known.skip 10.10.100-103.1-255 | awk -f $PROJECT_ROOT/mac-sort.awk
#
BEGIN { PROJECT_PATH="/path/to/scripts"; }
@hackingbutlegal
hackingbutlegal / gist:4760041
Created February 12, 2013 03:33
Windows: Remotely unlock RDP.
strComputer = InputBox ("Enter Machine Name")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colTSSettings = objWMIService.InstancesOf("Win32_TerminalServiceSetting")
For Each colTS in colTSSettings
colTS.SetAllowTSConnections(1)
Wscript.Echo UCase(strComputer) & "Remote Desktop Is Now Enabled"
Next
import tweepy
import time
import datetime
import requests
import uuid
import pymongo
from pymongo import MongoClient
def limit_handler(cursor):
@hackingbutlegal
hackingbutlegal / twitter_update_username_w_followers.py
Created July 9, 2020 18:55 — forked from echohtp/twitter_update_username_w_followers.py
Easy update twitter username w/ followers count
import os
import tweepy
from flask import Flask
# Authenticate to Twitter
auth = tweepy.OAuthHandler("API KEY", "API SECRET")
auth.set_access_token("TOKEN", "SECRET")
# Create API object
function deleteNextConversation()
{
if (!(dm = document.getElementsByClassName("DMInbox-conversationItem")[0])) {
clearInterval(tmr)
return;
}
dm.firstChild.click();
setTimeout('document.getElementsByClassName("js-actionDeleteConversation")[0].click()', 1000);
setTimeout('document.getElementById("confirm_dialog_submit_button").click()', 2000);
#!/bin/bash
#__________________________________________________________
# Author: phillips321 contact through phillips321.co.uk
# License: CC BY-SA 3.0
# Use: All in one pentest script designed for bt5
# Released: www.phillips321.co.uk
version=7.0
# Dependencies:
# nmap
# sslscan
@hackingbutlegal
hackingbutlegal / gist:13bbbd7b975d2cbb596773b234c8b645
Created June 28, 2020 18:13
Grabbing info about a remote site's SSL cert from the command line
echo | openssl s_client -showcerts -servername yourdomain[.]com -connect yourdomain[.]com:443 2>/dev/null | openssl x509 -inform pem -noout -text
import YOUR_LIBRARY_HERE
def get_methods(object, spacing=20):
methodList = []
for method_name in dir(object):
try:
if callable(getattr(object, method_name)):
methodList.append(str(method_name))
except:
methodList.append(str(method_name))
@hackingbutlegal
hackingbutlegal / add_twitter_users.py
Created July 1, 2019 21:03
Bulk Add Twitter Users to a List
#!/usr/bin/env python3
import tweepy
import pandas as pd
# Config
consumer_key = 'xxx'
consumer_secret = 'xxx'
access_token = 'xxx'
access_token_secret = 'xxx'
list_name = 'blockList'