Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Anshuman Bhartiya anshumanbh

🎯
Focusing
Block or report user

Report or block anshumanbh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@anshumanbh
anshumanbh / crypto.plantuml
Created Apr 18, 2019 — forked from jmarcil/crypto.plantuml
threat modeling toolkit cryptocurrencies plantuml
View crypto.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
View secret gist
Slack token = xoxp-130007425280-139833148449-368749871333-dd16122c189cbc0c789ee130dbd3f01d
View waybackrobots.py
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)
View godog_test.go
package main
import (
"fmt"
"os"
"testing"
"time"
"github.com/DATA-DOG/godog"
)
@anshumanbh
anshumanbh / testsub.py
Created Mar 7, 2017
sub for PubSub-KMS
View testsub.py
#!/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 Mar 7, 2017
topic for PubSub-KMS
View testtopic.py
#!/usr/bin/env python
import googleapiclient.discovery
import base64
from gcloud import pubsub
project_id="<>"
location="global"
keyring="<>"
cryptokey="<>"
@anshumanbh
anshumanbh / censys.py
Created Sep 16, 2016
Quick and Dirty script to use the Censys API to query subdomains of a target domain
View censys.py
__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']
View jiraconnect.sh
#!/bin/bash
set -e
unset http_proxy
unset https_proxy
virtualenv env
. env/bin/activate
export JIRA=jira.app.com
View runzap.py
#!/usr/bin/env python
import os
import subprocess
import time
import urllib
from pprint import pprint
from zapv2 import ZAPv2
import sys
You can’t perform that action at this time.