Skip to content

Instantly share code, notes, and snippets.

View intrd's full-sized avatar
🚫
Become a ghost

intrd

🚫
Become a ghost
View GitHub Profile
@intrd
intrd / hackvertor-tags.json
Created August 8, 2024 23:28
Splitting-the-email-atom - Hackvertor Javascript custom tags converted to Python
[
{
"argument1Default":"0x100",
"code":"output = ''.join(unichr(mask + ord(c)) for c in input)",
"argument1Type":"Number",
"numberOfArgs":1,
"argument1":"mask",
"language":"Python",
"tagName":"__unicode_overflow_py"
},
@intrd
intrd / xwitter.py
Created July 23, 2024 08:22
Python3 OAuth 2.0 PKCE with Tweepy: Upload and Tweet an Image using Twitter API v1 w/ X API v2.
## Python3 OAuth 2.0 PKCE with Tweepy: Upload and Tweet an Image using Twitter API v1 w/ X API v2.
# This script uploads an image using the old Twitter API v1, retrieves the media URL, and then tweets it using the new X API v2. (Yes, currently, this is the easiest way to accomplish this).
# Author: intrd@dann.com.br
import tweepy, sys
if len(sys.argv) < 3:
print("Usage: python3 script.py <file_path> <long_text>")
sys.exit(1)
file_path = sys.argv[2]
@intrd
intrd / Xwitter_createFirstToken.py
Last active May 31, 2024 09:08
X/Twitter - Simple Python3 OAuth 2.0 Authorization (PKCE), Refresh Token and Tweet Action without Tweepy or any 3rd-party libs
## X/Twitter - Simple Python3 OAuth 2.0 Authorization (PKCE), Refresh Token and Tweet Action without Tweepy or any 3rd-party libs.
# Author: intrd@dann.com.br
# Action: Create Refresh Token
import os
import secrets
import string
import requests
from urllib.parse import urlencode
@intrd
intrd / vpn_intrd.sh
Last active June 14, 2022 05:07
Openvpn safe kill switch / isolate vpn connection using linux routing table (no iptables needed)
#!/bin/bash
## Openvpn safe kill switch / isolate vpn connection using linux routing table (no iptables needed)
# Author: intrd@dann.com.br
# flush the entire routing table (incl cache)
sudo ip route flush table main
sudo ip route flush cache
# route the wan network but not a gateway
@intrd
intrd / mitrastar_ipchanger.sh
Last active March 9, 2022 09:15
VIVO FIBRA MitraStar GPT - IP changer / reboot one-liner (authd xpl)
## VIVO FIBRA MitraStar GPT - IP changer / reboot one-liner (authd xpl)
# Successfully tested on MitraStar GPT-2541 and 2741. No SSH access required.
# Author: intrd@dann.com.br
# YoU WouLdn't ReBooT My RoUtEr.. they said? CHALLENGE ACCEPTED!
# Install Node.js (sudo apt install nodejs), required to calculate sessionKey from CLI;
# Edit LOGIN/PASSWORD, IP_ROUTER and run: ./mitrastar_ipchanger.sh
# It will extract the JS and SID from router, process the JS with w/ node, trigger the reboot and change ip.
@intrd
intrd / valorant_ranked_points.py
Created January 5, 2021 22:18
Valorant matchmaking - Ranked points and last matches details retriever
## Valorant matchmaking - Ranked points and last matches details retriever
# @author intrd - http://dann.com.br/
# based on RumbleMike/ValorantAPI - https://github.com/RumbleMike/ValorantAPI/
# based on Luc1412/auth_flow.py - https://gist.github.com/Luc1412/1f93257a2a808679ff014f258db6c35b
# based on RumbleMike/ValorantRankedPoints - https://github.com/RumbleMike/ValorantRankedPoints
# Usage: Just fill YOURUSERNAMEHERE and YOURPASSWORDHERE.
import re
import aiohttp
@intrd
intrd / sample_response.txt
Last active January 5, 2021 22:10
Valorant matchmaking - Ranked points and last matches details retriever
{
"Version": 0,
"Subject": "XXXXX...",
"Matches": [
{
"MatchID": "XXXX...",
"MapID": "/Game/Maps/Bonsai/Bonsai",
"MatchStartTime": 160000000,
"TierAfterUpdate": 6,
"TierBeforeUpdate": 6,
@intrd
intrd / easy_java_update.txt
Last active September 14, 2020 23:52
Easy java install & update
wget http://ns1.iranns.ir/jdk-13.0.2_linux-x64_bin.tar.gz
git clone https://github.com/chrishantha/install-java
cd install-java
sudo ../install-java.sh -f jdk-13.0.2_linux-x64_bin.tar.gz
@intrd
intrd / android_tips.txt
Last active October 16, 2021 11:32
Intrd tips for Android battery lasts forever
## go to settings:
* apps & notifications > app info > disable builtin google services/apps (home/chrome/gmail/assistant/googlefi/cloud print/services for ar/)
* battery usage > adaptive on
* battery usage > enable background restriction for everything
* special app access > batt optimization > all apps > choose apps > optimize on/off
* special app access > unrestricted data > choose apps on/off
* dev opt > disable animation scales (speed gain)
* acessibility > remove animations
* dev opt > picture color, disable sRGB
* dev opt > wifi throttling
@intrd
intrd / hpwned.py
Last active March 11, 2019 07:29
Haveibeenpwned mail leaked mass checker
## Haveibeenpwned mail leaked mass checker
# @author intrd - http://dann.com.br/
# @license Creative Commons Attribution-ShareAlike 4.0 International License - http://creativecommons.org/licenses/by-sa/4.0/
# usage: python hpwned.py maillist.txt
import requests, json, time, sys
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)