Skip to content

Instantly share code, notes, and snippets.

View anshumanbh's full-sized avatar
🎯
Focusing

Anshuman Bhartiya anshumanbh

🎯
Focusing
View GitHub Profile
<html>
<script>alert(document.domain)</script>
</html>
@anshumanbh
anshumanbh / crypto.plantuml
Created April 18, 2019 21:15 — forked from jmarcil/crypto.plantuml
threat modeling toolkit cryptocurrencies plantuml
@startuml
skinparam monochrome true
skinparam defaultTextAlignment center
agent "Steal cryptocurrency" as steal
agent "Manipulate the market" as market
agent "Invade privacy" as privacy
agent "Expose their spending habits" as spy
privacy --> spy
Slack token = xoxp-130007425280-139833148449-368749871333-dd16122c189cbc0c789ee130dbd3f01d
import requests
import re
import sys
from multiprocessing.dummy import Pool
def robots(host):
r = requests.get(
'https://web.archive.org/cdx/search/cdx\
?url=%s/robots.txt&output=json&fl=timestamp,original&filter=statuscode:200&collapse=digest' % host)
package main
import (
"fmt"
"os"
"testing"
"time"
"github.com/DATA-DOG/godog"
)
print "test"
@anshumanbh
anshumanbh / testsub.py
Created March 7, 2017 11:35
sub for PubSub-KMS
#!/usr/bin/env python
from oauth2client.client import GoogleCredentials
from googleapiclient.discovery import build
import base64
from gcloud import pubsub
import time
project_id="<>"
location="global"
@anshumanbh
anshumanbh / testtopic.py
Created March 7, 2017 11:31
topic for PubSub-KMS
#!/usr/bin/env python
import googleapiclient.discovery
import base64
from gcloud import pubsub
project_id="<>"
location="global"
keyring="<>"
cryptokey="<>"
@anshumanbh
anshumanbh / censys.py
Created September 16, 2016 20:53
Quick and Dirty script to use the Censys API to query subdomains of a target domain
__author__ = 'bharta1'
import sys
import requests
import os
API_URL = "https://www.censys.io/api/v1"
UID = os.environ['CensysUID']
SECRET = os.environ['CensysSecret']
WEBSITE = os.environ['TARGETS']
#!/bin/bash
set -e
unset http_proxy
unset https_proxy
virtualenv env
. env/bin/activate
export JIRA=jira.app.com