Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html>
<head>
<title>Low entropy localStorage example - 3rd party frame</title>
</head>
<body>
<p>Test low entropy localStorage set by a third-party frame</p>
<iframe src="https://gistcdn.githack.com/gunesacar/aecff0fffefb24c26f4c/raw/90f94430a255303fd79f7227e7f128b8c8a7b86d/set_lo_entropy_ls.html"></iframe>
</body>
</html>
<!doctype html>
<html>
<head>
<title>localStorage example - 3rd party frame</title>
</head>
<body>
<p>Test if we can detect localStorage set by a third-party frame</p>
<iframe src="https://gistcdn.githack.com/gunesacar/43e2ad2b76fa5a7f7c57/raw/44e7303338386514f1f5bb4166c8fd24a92e97fe/set_ls.html"></iframe>
</body>
</html>
<!doctype html>
<html>
<head>
<title>localStorage example</title>
<script src="https://gistcdn.githack.com/gunesacar/07098e29bdbcdb3ffe40/raw/eacd6885c9f10ccd97ce4ea425408f341409d3ee/gistfile1.js"></script>
<script type="application/javascript">
function read_ls() {
for(var key in localStorage) {
console.log(key + localStorage.getItem(key));
}
<!doctype html>
<html>
<head>
<title>localStorage example</title>
<script src="https://gistcdn.githack.com/gunesacar/07098e29bdbcdb3ffe40/raw/eacd6885c9f10ccd97ce4ea425408f341409d3ee/gistfile1.js"></script>
</head>
<body>
</body>
</html>
<!doctype html>
<html>
<head>
<title>localStorage example - 3rd party frame</title>
</head>
<body>
<p>Test if we can detect localStorage set by a third-party frame</p>
<iframe src="https://gistcdn.githack.com/gunesacar/3b7e1a58252a0fed29e3d509964ef099/raw/dc4831bb865dc3c5980115f24666e5bd40befb4e/frame_ls.html"></iframe>
</body>
</html>
<!doctype html>
<html>
<head>
<title>localStorage example</title>
<script type="application/javascript">
function set_ls() {
setTimeout(function(){ localStorage['frameId'] = 'ABCDEF0123456789'; }, 3000);
}
</script>
</head>
<!doctype html>
<html>
<head>
<title>localStorage example - 3rd party frame</title>
</head>
<body>
<p>Test if we can detect localStorage set by a third-party frame</p>
<iframe src="https://gistcdn.githack.com/gunesacar/b66fd9b4f0ac0548e70c8b5442ec9437/raw/312dac2ba95d7b3f48afc6f51edaba4d8c219546/frame_ls_after_3sec.html"></iframe>
</body>
</html>
@gunesacar
gunesacar / tbselenium_usage.py
Last active October 28, 2017 00:04
tbselenium basic usage
from tbselenium.tbdriver import TorBrowserDriver
TBB_PATH = "/path/to/tbb/7.0.8/tor-browser_en-US/"
def main():
with TorBrowserDriver(TBB_PATH) as driver:
driver.get('https://check.torproject.org')
if __name__ == '__main__':
@gunesacar
gunesacar / print_cookies.py
Created February 6, 2018 02:23
Load a URL and print the cookies with Tor Browser Driver
from argparse import ArgumentParser
from tbselenium.tbdriver import TorBrowserDriver
def print_cookies(tbb_dir, url):
with TorBrowserDriver(tbb_dir) as driver:
driver.load_url(url)
print "Finished loading", url
print "Cookies:", driver.execute_script("return document.cookie;")