Skip to content

Instantly share code, notes, and snippets.

View h1code2's full-sized avatar
🎯
Focusing

Amelia Riski h1code2

🎯
Focusing
View GitHub Profile
@andrewrcollins
andrewrcollins / trim.awk
Created January 11, 2012 04:22
ltrim(), rtrim(), and trim() in awk
function ltrim(s) { sub(/^[ \t\r\n]+/, "", s); return s }
function rtrim(s) { sub(/[ \t\r\n]+$/, "", s); return s }
function trim(s) { return rtrim(ltrim(s)); }
BEGIN {
# whatever
}
{
# whatever
}
END {
@christopherhesse
christopherhesse / extract_chrome_cache_html.py
Created March 8, 2012 07:11
extract original content from chrome about:cache html source
import sys
import re
import gzip
import mimetypes
from mimetools import Message
from StringIO import StringIO
def parse_headers(raw_headers):
response_line, headers_text = raw_headers.split('\n', 1)
headers = Message(StringIO(headers_text))
@rtt
rtt / tinder-api-documentation.md
Last active June 21, 2024 04:19
Tinder API Documentation

Tinder API documentation

Note: this was written in April/May 2014 and the API may has definitely changed since. I have nothing to do with Tinder, nor its API, and I do not offer any support for anything you may build on top of this. Proceed with caution

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

@subho007
subho007 / Test.java
Created February 20, 2016 21:08
Frida to Hook Android Log
import android.util.Log;
// The Log function in Android
Log.d("TEST", "Wohoo This Works !")
package com.xloger.exlink.app;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import com.xloger.exlink.app.entity.App;
import com.xloger.exlink.app.entity.Rule;
import com.xloger.exlink.app.util.AppUtil;
import com.xloger.exlink.app.util.MyLog;
@evan3334
evan3334 / download_tiktok_videos.user.js
Created November 15, 2018 19:00
Userscript to download tiktok videos shown in the browser, for ultimate memeing purposes. :)
// ==UserScript==
// @name Download Tiktok Videos
// @namespace https://tiktok.com/
// @version 0.1
// @description Adds download links for videos, even on private accounts.
// @author Evan Straw
// @include http://*.tiktok.com/*
// @include https://*.tiktok.com/*
// @grant none
// ==/UserScript==
// start with:
// frida -U -l pinning.js -f [APP_ID] --no-pause
Java.perform(function () {
console.log('')
console.log('===')
console.log('* Injecting hooks into common certificate pinning methods *')
console.log('===')
var X509TrustManager = Java.use('javax.net.ssl.X509TrustManager');
@liamengland1
liamengland1 / tiktok.js
Created June 20, 2020 17:23
tiktok anti-scraping code
var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(f) {
return typeof f
}
: function(f) {
return f && "function" == typeof Symbol && f.constructor === Symbol && f !== Symbol.prototype ? "symbol" : typeof f
}
;
TAC = function() {
function f(f, a, b, d, c, r) {
null == r && (r = this);
list of bot bait sites owned&operated by cloudflare
Many of these sites are linked in the source code of CF DDoS protection pages (Just a moment - Checking your browser before accessing)
https://macinline.com/answeradenoidal.php?lang=321
http://uswest-qwest.com/massive.php?rss=0
https://purpleisp.net/frozentalented.php?q=395
http://purpleisp.net/frozentalented.php?more=0
http://noabcla.com/cultured.php?userid=7
https://noabcla.com/cultured.php?more=18