Skip to content

Instantly share code, notes, and snippets.

View devdilson's full-sized avatar
🎯
Focusing

Dil A. devdilson

🎯
Focusing
View GitHub Profile
-- Cheat Engine Lua Script to Dump a DLL
-- First, identify the target process. You can do this manually in Cheat Engine or use Lua:
local processName = "Kaizen v92.exe" -- Replace with your target process
openProcess(processName)
-- Define the DLL name you want to dump
local dllName = "Client.dll" -- Replace with the name of the DLL you want to dump
-- Function to find the base address of the DLL in the target process
@devdilson
devdilson / PacketReceiver.java
Created December 28, 2022 17:11
Generated by GPT3
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.util.Iterator;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
function interceptNetworkRequests(ee) {
const open = XMLHttpRequest.prototype.open;
const send = XMLHttpRequest.prototype.send;
const isRegularXHR = open.toString().indexOf('native code') !== -1;
// don't hijack if already hijacked - this will mess up with frameworks like Angular with zones
// we work if we load first there which we can.
if (isRegularXHR) {
@devdilson
devdilson / CArrayStack.java
Last active December 12, 2021 19:34
Simple Stack implementation using arrays in Java
package io.nxz.interview.study.stack;
public class CArrayStack<T> {
private int currentSize;
private T[] items;
public CArrayStack(int initialSize) {
this.items = (T[]) new Object[initialSize];
}
@devdilson
devdilson / download.sh
Created November 7, 2021 17:44
Download a directory recursively with wget
# Download direcotory recursively
wget --no-parent --no-check-certificate -r https://the-eye.eu/public/AI/gptneo-release/GPT3_2-7B
foreach($Adapter in Get-NetAdapter)
{
New-NetIPAddress –IPAddress [IPAdresse] -DefaultGateway [Gateway] -PrefixLength [CIDR] -InterfaceIndex $Adapter.InterfaceIndex
}
@devdilson
devdilson / gms.md
Created September 24, 2021 09:59
GMS Releases

0.02 (11 May 2005)

  • Official open patch

0.03 (26 May 2005)

  • Bugfix

0.04 (28 Jun 2005)

  • Complete Version

0.05 (14 Jul 2005)

@devdilson
devdilson / clone-search.sh
Last active August 1, 2021 14:36
Clones a github Search
#!/bin/bash
TOKEN=
SEARCH=maplestory
SORT=desc
CREATED=2006-01-11T00:00:00Z
mkdir "logs" &
mkdir result &
for i in {1..100}
do
url="https://api.github.com/search/repositories?q=$SEARCH&per_page=100&page=$i&created>=$CREATED&sort=created&order=$SORT"
@devdilson
devdilson / .eslintrc.json
Last active June 28, 2021 13:17
BlockLint
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
@devdilson
devdilson / ec2.sh
Last active May 31, 2021 15:56
User data script for EC2 instance which install apache and creates a html page with Hello world message
#!/bin/bash
########################################
##### USE THIS WITH AMAZON LINUX 2 #####
########################################
# get admin privileges
sudo su
# install httpd (Linux 2 version)