Skip to content

Instantly share code, notes, and snippets.

@NguyenKhong
NguyenKhong / WifiWithVpn.sh
Last active December 20, 2022 18:03
make wifi hostpost tunnel to vpn
#!/data/data/com.termux/files/usr/bin/sh
/system/bin/iptables -I FORWARD -i wlan0 -o tun0 -j ACCEPT
/system/bin/iptables -I FORWARD -i tun0 -o wlan0 -j ACCEPT
/system/bin/iptables -t nat -I PREROUTING -i wlan0 -p udp --dport 53 -j DNAT --to 1.1.1.1:53
ip rule add pref 500 fwmark 0x0/0x10000 lookup local_network
// ==UserScript==
// @name Bypass anti copy
// @namespace anticopy
// @version 0.1
// @description try to take over the world!
// @author NguyenKhong
// @match https://blog.tomorrowmarketers.org/*
// @run-at document-start
// ==/UserScript==
// ==UserScript==
// @name Anti Anti-debugger
// @namespace http://tampermonkey.net/
// @version 1
// @description Stops most anti debugging implementations by JavaScript obfuscaters
// @author ww
// @match *
// @include *
// @grant unsafeWindow
// @run-at document-start
#Only use for google colab
#@markdown <center><h3>Colab alive and vnc</h3></center><br>
import os,sys
import random
import string
import urllib.request
from IPython.display import HTML, clear_output
import time
#####################################
import sys
from PyQt5.QtCore import QUrl, QSize
from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEngineScript, QWebEnginePage, QWebEngineProfile
from PyQt5.QtWidgets import QToolBar, QAction, QLineEdit, QLabel, QMainWindow, QTabWidget, QApplication
from PyQt5.QtNetwork import QNetworkCookie
import http.cookiejar
def create_script(name, src, injection_point = QWebEngineScript.DocumentCreation, world = QWebEngineScript.MainWorld, on_subframes = True):
script = QWebEngineScript()
script.setSourceCode(src)
// ==UserScript==
// @name Colab Alive
// @namespace colab
// @version 0.2
// @description Colab Alive
// @author Nguyen Khong
// @match https://colab.research.google.com/drive/*
// @run-at document-start
// ==/UserScript==
document.addEventListener('DOMContentLoaded', function() {
@NguyenKhong
NguyenKhong / webbrowser.py
Created December 12, 2020 19:58
mini web browser
import sys
from PyQt5.QtCore import QUrl, QSize
from PyQt5.QtGui import QIcon, QPixmap
from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEngineScript, QWebEnginePage, QWebEngineProfile
from PyQt5.QtWidgets import QToolBar, QAction, QLineEdit, QProgressBar, QLabel, QMainWindow, QTabWidget, QStatusBar, QApplication
class WebProfile(QWebEngineProfile):
def __init__(self, *args, **kwargs):
super(WebProfile, self).__init__(*args, **kwargs)
self.setHttpUserAgent("Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0")
[AutoRun]
enabled=true
program=/bin/bash /content/qTorrentExternalCmd.sh \"%F\"
[BitTorrent]
Session\AnnounceToAllTiers=true
Session\AsyncIOThreadsCount=8
Session\CheckingMemUsageSize=64
Session\CoalesceReadWrite=true
Session\CreateTorrentSubfolder=true
###########################################
### ###
### Utorrent Server v3.0 Config File ###
### ###
### By Khizer Naeem ###
### khizernaeem@gmail.com ###
### Date: 29/12/2011 ###
### ###
###########################################
###########################################
@NguyenKhong
NguyenKhong / cookie_jar.go
Created December 15, 2019 20:56 — forked from rowland/cookie_jar.go
Go http client with cookie support