Skip to content

Instantly share code, notes, and snippets.

View un4ckn0wl3z's full-sized avatar
🖕
An idiot admires complexity; a genius admires simplicity

Anuwat Khongchuai un4ckn0wl3z

🖕
An idiot admires complexity; a genius admires simplicity
View GitHub Profile
import frida
import sys
import codecs
def on_message(message, data):
if message['type'] == 'send':
print(message['payload'])
elif message['type'] == 'error':
print(message['stack'])
else:
print(message)
@un4ckn0wl3z
un4ckn0wl3z / how-to-run.md
Created October 11, 2023 09:04 — forked from bluenex/how-to-run.md
Guide to run script on terminal in the background with log.

Running in the background

This command can be applied to anything run on cli, for example bash script and python script.

Two ways to do

There are two ways to run process in the background, nohup and & (ampersand).

Steps

@un4ckn0wl3z
un4ckn0wl3z / breath-first-traversal-explained.js
Created September 30, 2023 12:55
Explained BFT for Discord members
const Queue = require('./queue');
class Node {
constructor(data) {
this.data = data
this.left = null
this.right = null
}
}
@un4ckn0wl3z
un4ckn0wl3z / depth-first-traversal-explained.js
Created September 30, 2023 06:40
Explained DFT for Discord members
class Node {
constructor(data) {
this.data = data
this.left = null
this.right = null
}
}
function depthFirstTraversal(root) {
if (!root) return []
@un4ckn0wl3z
un4ckn0wl3z / abc.XYZ
Created September 18, 2023 13:06
Lower-case and Upper-case English alphabet
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
@un4ckn0wl3z
un4ckn0wl3z / tor2web-list.md
Created September 8, 2023 07:59 — forked from adulau/tor2web-list.md
Tor2web and tor proxies public list

Tor2web and tor proxies public list

List of services which are giving access to Tor network and especially Tor hidden services via web interface. We keep track of potential injection or abuse from such service (the column Scam).

List

Url Status Domain Log Techno Scam
https://onion.re/ UP onion.re full custom no
//
export class UnExpectedError extends Error {
public code: number;
public status: number;
public constructor(
stack?: string,
) {
super('Unexpected Error')
this.name = this.constructor.name
You can pass md5sum multiple filenames or bash expansions:
$ md5sum * > checklist.chk # generates a list of checksums for any file that matches *
$ md5sum -c checklist.chk # runs through the list to check them
cron: OK
database.sqlite3: OK
fabfile.py: OK
fabfile.pyc: OK
manage.py: OK
nginx.conf: OK
import * as promiseLimit from 'promise-limit'
class Service {
static async task(numv: number){
return new Promise((resolve, reject) => {
setTimeout(() => {
if(numv === 5){
reject('Nani!!')
}
resolve(numv)
class Service {
static async task(numv: number){
return new Promise((resolve, reject) => {
setTimeout(() => {
if(numv === 5){
reject('Nani!!')
}
resolve(numv)
}, 3000)