Skip to content

Instantly share code, notes, and snippets.

@Titoot
Titoot / download_docsity_preview_pdf.md
Created April 5, 2024 14:10
Download docsity preview pdf

this is only useful for single paged files

download docsity preview pdf

  1. open getKey.js file and then load the page and paste the content in the dev tools (CTRL + SHIFT + I)
  2. you'll get the download url and the password key for the pdf
@Titoot
Titoot / !webRTC_Test.js
Last active February 21, 2023 12:27
webRTC Test
const sdp = 'v=0\no=- 166855176514521964 2 IN IP4 127.0.0.1\ns=-\nt=0 0\na=msid-semantic:WMS *\na=group:BUNDLE audio1\nm=audio 9 UDP/TLS/RTP/SAVPF 111\nc=IN IP4 0.0.0.0\na=rtcp:9 IN IP4 0.0.0.0\na=ice-ufrag:someufrag\na=ice-pwd:somelongpwdwithenoughrandomness\na=fingerprint:sha-256 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00\na=setup:actpass\na=mid:audio1\na=sendonly\na=rtcp-mux\na=rtcp-rsize\na=rtpmap:111 opus/48000/2\na=candidate:702786350 1 udp 41819902 8.8.8.8 60769 typ host\na=msid:stream1 audiotrack\n';
const ssrc = 'a=ssrc:1001 msid:stream1 audiotrack\n'; // a=ssrc:1001 cname:something\n';
const pc = new RTCPeerConnection({sdpSemantics: 'plan-b'});
pc.ontrack = e => {
console.log('ONTRACK', e.track, e.streams);
document.getElementById("testing").innerHTML = `ONTRACK: ${e.track} ${e.streams}`;
};
pc.setRemoteDescription({type: 'offer', sdp: sdp + ssrc})
.then(() => pc.createAnswer())
@Titoot
Titoot / mixunpin.js
Last active December 12, 2022 15:12 — forked from incogbyte/mixunpin.js
Frida script to bypass common methods of sslpining Android
console.log("[*] SSL Pinning Bypasses");
console.log(`[*] Your frida version: ${Frida.version}`);
console.log(`[*] Your script runtime: ${Script.runtime}`);
/**
* by incogbyte
* Common functions
* thx apkunpacker, NVISOsecurity, TheDauntless
* Remember that sslpinning can be custom, and sometimes u need to reversing using ghidra,IDA or something like that.
* !!! THIS SCRIPT IS NOT A SILVER BULLET !!