Skip to content

Instantly share code, notes, and snippets.

View Marsman1996's full-sized avatar
👨‍🎓
Studying

Marsman1996

👨‍🎓
Studying
  • Institute of Software Chinese Academy of Sciences
  • Beijing, China
View GitHub Profile
@Marsman1996
Marsman1996 / zoo.js
Created May 29, 2021 11:18
[20210529]-zoo
var rootURI = "https://api.m.jd.com/";
var secretp = "";
var myItemId = "";
var itemsList = [];
var shopitemsList = [];
var qryCompositeMaterialList = [];
var qryCompositeMaterialStatus = true;
function log(text) {
@Marsman1996
Marsman1996 / wireshark_http_extractor.py
Created August 25, 2020 08:39 — forked from tecoholic/wireshark_http_extractor.py
Extract the flow of requests and responses from a Wireshark dump JSON exported file
import sys
import json
from urllib.parse import urlparse, parse_qs
def parse_multimap(ordered_pairs):
"""JSON loads object_pairs_hook, which creates a list of values when
duplicate keys are found in the JSON file being parsed
#!/bin/bash
objdump -d "${1}" | grep -Eo '\$0x[0-9a-f]+' | cut -c 2- | sort -u | while read const; do echo $const | python -c 'import sys, struct; sys.stdout.write("".join(struct.pack("<I" if len(l) <= 11 else "<Q", int(l,0)) for l in sys.stdin.readlines()))' > testcases/$const; done
i=0; strings "${1}"| while read line; do echo -n "$line" > testcases/string_${i} ; i=$(( $i + 1 )) ; done