This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import re | |
def find_repr(target, numbers): | |
org_reprs = dict((number, str(number)) for number in numbers) | |
curr_reprs = org_reprs | |
while target not in curr_reprs: | |
old_reprs, curr_reprs = curr_reprs, {} | |
for x in old_reprs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import tarfile | |
import os | |
import re | |
import ipaddress | |
def openTgz(): | |
tar = tarfile.open("shallalist.tar.gz", "r:gz") | |
domains = [] | |
for tarinfo in tar: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python | |
import json | |
import requests | |
url = "http://letsrevolutionizetesting.com/challenge" | |
headers = {'accept': 'application/json'} | |
while True: | |
r = requests.get(url, headers=headers) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
X="http://letsrevolutionizetesting.com/challenge.json" | |
jsonparser() { | |
R=`curl -s $1| cut -d : -f3 -f2 | sed s/'"'//g | sed s/'}'//g | sed s/challenge/challenge.json/g` | |
echo $R | |
} | |
jsonparser $X |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"strings" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'json' | |
require 'net/http' | |
result = nil | |
uri = URI('http://letsrevolutionizetesting.com/challenge.json') | |
while result == nil | |
res = Net::HTTP.get_response(uri) | |
challenge = JSON.parse(res.body) | |
if challenge.has_key?("follow") | |
uri = URI(challenge["follow"].sub("challenge?", "challenge.json?")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
function follow(url, cb) { | |
http.get(url, function(res) { | |
res.on('data', function (chunk) { | |
var data = JSON.parse(chunk.toString()); | |
if (!data || !data.follow) { | |
cb(data); | |
return; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// document.querySelectorAll | |
const items = document.querySelectorAll('ul.collection li.collection-item'); | |
console.log(items) | |
// document.getElementsByTagName | |
// let lis = document.getElementsByTagName('li'); | |
// console.log(lis); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css"> | |
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" | |
crossorigin="anonymous"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"net" | |
//"time" | |
"github.com/google/gopacket" |