Skip to content

Instantly share code, notes, and snippets.

View SocioDroid's full-sized avatar

Aishwarya Kendle SocioDroid

View GitHub Profile
@SocioDroid
SocioDroid / ipfsPinning.ts
Created May 18, 2022 06:48
Snippet for IPFS pinning
import { create, urlSource } from "ipfs-http-client";
const fromIpfsURL = "https://gateway.pinata.cloud/ipfs";
const toIpfsURL = "https://api.thegraph.com/ipfs/api/v0/";
const ipfs = create({ url: toIpfsURL });
console.log(
"~~~~~~~~~~~~ File pinning progress ~~~~~~~~~~~~"
);
@SocioDroid
SocioDroid / pinIPFS.js
Last active May 18, 2022 06:43
IPFS PINNING - Backend
const { create, urlSource } = require("ipfs-http-client");
const ipfs = create({ url: "https://api.thegraph.com/ipfs/api/v0/" });
console.log(
"~~~~~~~~~~~~ File pinning progress ~~~~~~~~~~~~"
);
console.log("\n\n");
const sleep = (delay) => new Promise((resolve) => setTimeout(resolve, delay * 1000));
@SocioDroid
SocioDroid / subdomainTakeover.sh
Last active October 3, 2020 11:24
A script to check for subdomain takeover
#!/bin/sh
filename=$1
while read line; do
echo "Sublist3r"
python3 sublist3r.py -d $line -o $line.txt
echo "Assetfinder"
assetfinder --subs-only $line | tee -a $line.txt
sort -u $line.txt -o $line.txt
echo "Subjack"
subjack -w $line.txt -t 1000 -o $1takeover.txt
@SocioDroid
SocioDroid / enumSubdomains.sh
Last active October 3, 2020 11:24
A script to enumerate subdomains using Sublist3r and Assetfinder.
#!/bin/sh
filename=$1
while read line; do
echo "Sublist3r"
python3 sublist3r.py -d $line -o $line.txt
echo "Assetfinder"
assetfinder --subs-only $line | tee -a $line.txt
sort -u $line.txt -o $line.txt