Skip to content

Instantly share code, notes, and snippets.

View extremecoders-re's full-sized avatar
๐Ÿถ
๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ๐Ÿถ

extremecoders-re

๐Ÿถ
๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ๐Ÿถ
View GitHub Profile
@edro15
edro15 / ForceUSBtoTTY.md
Last active April 26, 2025 09:43
[How To] Force a specific USB device to a certain TTY

Scenario:

  • multiple USB devices plugged via hub to a host (Linux OS based),
  • multiple services/programs interacting with TTY running on top (e.g. GPSd)

Problem:

At boot TTY are randomly assigned to devices causing depending services/programs instabilities. They could indeed fail to start because of different TTY configurations.

Solution:

@asukakenji
asukakenji / 0-go-os-arch.md
Last active May 12, 2025 09:54
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix โœ…
android โœ…

WannaCry|WannaDecrypt0r NSA-Cyberweapon-Powered Ransomware Worm

  • Virus Name: WannaCrypt, WannaCry, WanaCrypt0r, WCrypt, WCRY
  • Vector: All Windows versions before Windows 10 are vulnerable if not patched for MS-17-010. It uses EternalBlue MS17-010 to propagate.
  • Ransom: between $300 to $600. There is code to 'rm' (delete) files in the virus. Seems to reset if the virus crashes.
  • Backdooring: The worm loops through every RDP session on a system to run the ransomware as that user. It also installs the DOUBLEPULSAR backdoor. It corrupts shadow volumes to make recovery harder. (source: malwarebytes)
  • Kill switch: If the website www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm. Will not work if proxied (source).

update: A minor variant of the viru

@heiswayi
heiswayi / repo-reset.md
Created February 5, 2017 01:32
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
@takeshixx
takeshixx / ubuntu-xenial-armfh-qemu.md
Last active October 22, 2023 12:14
Running Ubuntu 16.04.1 armhf on Qemu

Running Ubuntu 16.04.1 armhf on Qemu

This is a writeup about how to install Ubuntu 16.04.1 Xenial Xerus for the 32-bit hard-float ARMv7 (armhf) architecture on a Qemu VM via Ubuntu netboot.

The setup will create a Ubuntu VM with LPAE extensions (generic-lpae) enabled. However, this writeup should also work for non-LPAE (generic) kernels.

The performance of the resulting VM is quite good, and it allows VMs with >1G ram (compared to 256M on versatilepb and 1G on versatile-a9/versatile-a15). It also supports virtio disks whereas versatile-a9/versatile-a15 only support SD cards via the -sd argument.

Get netboot files

@mhitza
mhitza / Makefile
Last active March 24, 2025 09:27
Programming Arduino Uno (ATmega386P) in assembly
%.hex: %.asm
avra -fI $<
rm *.eep.hex *.obj *.cof
all: $(patsubst %.asm,%.hex,$(wildcard *.asm))
upload: ${program}.hex
avrdude -c arduino -p m328p -P /dev/arduino-uno -b 115200 -U flash:w:$<
monitor:
@zhuowei
zhuowei / relooper.py
Created January 1, 2015 02:46
Python bindings for the Relooper library
"""
Wrapper for the Relooper api.
"""
"""
RELOOPERDLL_API void rl_set_output_buffer(char *buffer, int size);
RELOOPERDLL_API void rl_make_output_buffer(int size);
RELOOPERDLL_API void *rl_new_block(const char *text);
RELOOPERDLL_API void rl_delete_block(void *block);
RELOOPERDLL_API void rl_block_add_branch_to(void *from, void *to, const char *condition, const char *code);
@Liryna
Liryna / ARMDebianUbuntu.md
Last active April 21, 2025 18:35
Emulating ARM on Debian/Ubuntu

You might want to read this to get an introduction to armel vs armhf.

If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.

Running ARM programs under linux (without starting QEMU VM!)

First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux