Skip to content

Instantly share code, notes, and snippets.

@un4ckn0wl3z
un4ckn0wl3z / docker-compose.mongo.yml
Created August 19, 2024 02:23 — forked from gterdem/docker-compose.mongo.yml
Docker compose for mongodb and mongo express
version: "3.8"
services:
mongodb:
image: mongo
container_name: mongodb
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=pass12345
volumes:
- mongodb_data:/data/db
@un4ckn0wl3z
un4ckn0wl3z / xorDecrypt.js
Created July 27, 2024 13:08
xorDecrypt.js
function xorDecrypt(cipherText, hexKey) {
// Convert the hexadecimal key to a byte array
let key = hexKey.match(/.{1,2}/g).map(byte => parseInt(byte, 16));
// Decode the base64 encoded cipher text to a byte array
let cipherBytes = atob(cipherText).split('').map(char => char.charCodeAt(0));
// XOR decryption
let plainBytes = cipherBytes.map((byte, index) => byte ^ key[index % key.length]);
@un4ckn0wl3z
un4ckn0wl3z / LibRdKafkaService.ts
Created July 11, 2024 07:16
LibRdKafkaService.ts
import { Injectable } from "@nestjs/common";
import Kafka from 'node-rdkafka';
import { ConfigService } from '@nestjs/config';
@Injectable()
export class LibRdKafkaService {
private consumer: Kafka.KafkaConsumer;
private producer: Kafka.Producer;
constructor(private configService: ConfigService){
#include <Windows.h>
#include <iostream>
#include <stdio.h>
void EnableVirtualTerminalProcessing() {
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
DWORD dwMode = 0;
GetConsoleMode(hOut, &dwMode);
dwMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
SetConsoleMode(hOut, dwMode);
git checkout --orphan orphan_data
git add -A
git commit -am "fix: orphaned"
git branch -D main
git branch -m main
---
version: '2'
services:
zookeeper:
image: confluentinc/cp-zookeeper:7.3.2
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"
environment:
version: "3.8"
services:
mongo1:
image: mongo:5
container_name: mongo1
command: ["--replSet", "my-replica-set", "--bind_ip_all", "--port", "30001"]
volumes:
- ./data/mongo-1:/data/db
ports:
@un4ckn0wl3z
un4ckn0wl3z / kmonitor.ts
Created June 24, 2024 09:02
kmonitor.ts
// kmonitor.ts
import { Injectable } from "@nestjs/common";
import { Ctx, KafkaContext } from "@nestjs/microservices";
@Injectable()
export class kMonitor {
constructor(@Ctx() context: KafkaContext) {
context.getConsumer().on('consumer.rebalancing', (ev) => {
console.log(ev)
Stage 1 (Lessons 1-34)
1.PUBG Unreal Engine Environment Configuration and Compilation
2.Unreal Game Engine Basic Classes and C++ Reflection Principles
3.PUBG Important Structures and Hierarchical Relationships of Classes
4.Ollvm Obfuscation and VMP Protection PUBG Auxiliary Framework
4.5. Installation of llvm plug-in (supplementary course)
4.8. Modify line 571 of yvals_core.h to make it compatible with Clang version
5. Detailed explanation of ShellCode of Moduleless injection DWM process
6. Parse PE file and write ShellCode test
; MessageBoxA_Masm.asm by un4ckn0wl3z
.code
COMMENT @
int MessageBoxA(
[in, optional] HWND hWnd,
[in, optional] LPCSTR lpText,
[in, optional] LPCSTR lpCaption,
[in] UINT uType