Skip to content

Instantly share code, notes, and snippets.

View limkokhole's full-sized avatar
🌴
On vacation

林果皞 limkokhole

🌴
On vacation
View GitHub Profile
@limkokhole
limkokhole / reciprocal_fib.py
Created November 3, 2023 12:03 — forked from acaly/reciprocal_fib.py
A fast (but hard-to-read) implementation of Reciprocal fibonacci constant calculator in python. This was a UofT CSC373 assignment.
import array
import sys
import cProfile
# input
OutputCount = int(sys.argv[1])
# object init
/*
1) Open https://popcat.click
2) Open console (F12 or CTRL+SHIFT+I)
3) Insert code & run
4) Monitor bot progress in the console
Note: popcat.click server registers only 800 pops every 30 seconds per IP address (that's why this bot is slow and runnig it in multiple tabs won't work).
If you'll send 800 or more clicks 10 times in a row, you'll get banned for 12 hours ("ban" cookie is set).
This bot addresses this issue and will NOT get you banned.
@limkokhole
limkokhole / SystemCallHooking.c
Created April 7, 2021 17:10 — forked from mike820324/SystemCallHooking.c
An example of Hooking Linux System Call
#include <linux/module.h>
#include <linux/printk.h>
#include <linux/fs.h>
#include <linux/sched.h>
#include <asm/unistd.h>
#include <asm/pgtable_types.h>
#include <linux/highmem.h>
#include "hook_function_ptr.h"
@limkokhole
limkokhole / .curlrc
Created January 31, 2021 17:24 — forked from v1m/.curlrc
sample .curlrc file
#this is a sample .curlrc file
# store the trace in curl_trace.txt file. beware that multiple executions of the curl command will overwrite this file
--trace curl_trace.txt
# store the header info in curl_headers.txt file. beware that multiple executions of the curl command will overwrite this file
--dump-header curl_headers.txt
#change the below referrer URL or comment it out entirely
-e "https://www.google.com"
@limkokhole
limkokhole / dns_basics.md
Created January 30, 2021 03:34 — forked from leommoore/dns_basics.md
DNS Basics

#DNS Basics Domain names are a core feature of the internet. It is simply a mechanism to give a friendly name to remove the need to use ip addresses directly. It also has a number of advantages, such as:

  1. It allows you to have more than one domain name pointing at the same ip address (ie same website).
  2. It allows you to host more than one website on a specific ip address (ie shared hosting, the website shown in the one associated with the domain name)
Record Type
@limkokhole
limkokhole / fuckbaidu.js
Created January 14, 2021 16:55 — forked from kasuganosoras/fuckbaidu.js
去掉百度的反爬虫内容
// ==UserScript==
// @name Fuck Baidu Zhidao
// @namespace http://www.baidu.com/
// @version 0.1
// @description try to fuck over the baidu!
// @author Baidu
// @match https://zhidao.baidu.com/question/*.html
// @grant none
// ==/UserScript==
@limkokhole
limkokhole / ascii_movie_image_ver_1.py
Last active December 17, 2020 11:03 — forked from MotionDesignStudio/ascii_movie_image_ver_1.py
Python ASCII Video And ASCII Image Creator
import sys
import cv2
import subprocess
from subprocess import call
import aalib # python3 -m pip install python-aalib
import PIL # python3 -m pip install Pillow
from PIL import ImageFont
from PIL import Image
@limkokhole
limkokhole / AudienceNetworkPrebid.js
Created November 24, 2020 08:49 — forked from kasparsd/AudienceNetworkPrebid.js
Facebook Audience Network
/*1484157874,,JIT Construction: v2773152,en_US*/
/**
* Copyright Facebook Inc.
*
* Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
try {
window.AudienceNetworkPrebid || (function(window, fb_fif_window) {
var apply = Function.prototype.apply;
@limkokhole
limkokhole / messenger.Extensions.debug.js
Created November 24, 2020 07:38 — forked from ALiangLiang/messenger.Extensions.debug.js
messenger.Extensions/debug.js
/*1539272086,,JIT Construction: v4409275,en_US*/
/**
* Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
* copy, modify, and distribute this software in source code or binary form for use
* in connection with the web services and APIs provided by Facebook.
*
* As with any software that integrates with the Facebook platform, your use of
@limkokhole
limkokhole / mozlz4a.py
Created August 14, 2020 22:14 — forked from kaefer3000/mozlz4a.py
MozLz4a compression/decompression utility
#!/usr/bin/env python
#
# Decompressor/compressor for files in Mozilla's "mozLz4" format. Firefox uses this file format to
# compress e. g. bookmark backups (*.jsonlz4).
#
# This file format is in fact just plain LZ4 data with a custom header (magic number [8 bytes] and
# uncompressed file size [4 bytes, little endian]).
#
# This Python 3 script requires the LZ4 bindings for Python, see: https://pypi.python.org/pypi/lz4
#