Skip to content

Instantly share code, notes, and snippets.

View SmartManoj's full-sized avatar
💭
Raising an AI Software Engineer 🤖

மனோஜ்குமார் பழனிச்சாமி SmartManoj

💭
Raising an AI Software Engineer 🤖
View GitHub Profile
@SmartManoj
SmartManoj / gist:aceee7302d5fcbe0721814d26e3f7d01
Last active October 9, 2020 11:50
Save Contact or Find importers
import os
from telethon import TelegramClient, events
from telethon.tl.types import InputPhoneContact
from telethon import functions, types
from config import *
import random
from tthon import *
sn = 'Temp'
#!/usr/bin/env python
# Linux usage: ./extract_tampermonkey_script.py "/home/<USER>/.config/<BROWSER>/Default/Local Extension Settings/<EXTENSION_ID>"
# i.e.: ./extract_tampermonkey_script.py "/home/foo/.config/google-chrome-beta/Default/Local Extension Settings/gcalenpjmijncebpfijmoaglllgpjagf"
# Mac usage: ./extract_tampermonkey_script.py "/Users/<USER>/Library/Application Support/Google/Chrome/Default/Local Extension Settings/<EXTENSION_ID>/"
# i.e.: ./extract_tampermonkey_script.py "/Users/foo/Library/Application Support/Google/Chrome/Default/Local Extension Settings/dhdgffkkebhmkfjojejmpbldmpobfkfo/"
import leveldb
import sys
import re
mount -o remount ,rw .
cd Windows/System32
cp Utilman.exe Utilman.exe.bak
cp sethc.exe sethc.exe.bak
cp cmd.exe Utilman.exe
cp cmd.exe sethc.exe