Skip to content

Instantly share code, notes, and snippets.

extremecoders-re /
Created Apr 17, 2019 — forked from heiswayi/
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
extremecoders-re /
Last active Jan 21, 2019
Docker IPC using named pipe

Container C1

$ docker run --rm --name c1 --ipc shareable -it ubuntu:18.04 /bin/bash
# mkfifo /dev/shm/mypipe
# echo "Hello from C1" > /dev/shm/mypipe 

Container C2

$ docker run --rm --name c2 --ipc container:c1 -it ubuntu:18.04 /bin/bash
extremecoders-re /
Last active Jan 19, 2019
get_video_url fix
def get_video_url(url):
videos = []
params = []
xbmc.log(url, level=xbmc.LOGWARNING)
quality = (Addon.getSetting('qualityType')).lower()
resp = api_hotstar_request(url, auth=True)
manifest1 = resp['body']['results']['item']['playbackUrl']
addon_log('manifest1 is, '+manifest1)
extremecoders-re /
Last active Apr 22, 2019
Disable vmem files in VMWare Workstation.

Prevent creation of vmmem files in VmWare


VMWare creates .vmem files to back the guest RAM. On the host this causes disk thrashing especially during powering on and off the guest.


Add the following lines to the .vmx file to prevent creation of .vmem files. This will reduce disk IO and VM performance will improve especially on non-SSD disks.

extremecoders-re /
Last active Dec 20, 2018
Running OpenWRT ARM under QEMU


The steps shown below are done on a Ubuntu VM using Qemu 3.0

$ qemu-system-arm -version
QEMU emulator version 3.0.0
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

To quit Qemu at any time press Ctrl+a x, i.e. Ctrl+a and then x

extremecoders-re / Debug a program in qemu with piped
Last active Jul 25, 2018
Debug a program in qemu with piped input
View Debug a program in qemu with piped

Debug a program in qemu with piped input

Within qemu

  1. Create named pipe
pi@raspberrypi ~ $ mkfifo thepipe
  1. Start a netcat listener which outputs to the pipe (redirected STDOUT)
extremecoders-re /
Created Mar 30, 2018
Comodo manual updater (Incomplete)
echo "[+] Checking for updates..."
path_bases_cav="/c/Program Files/COMODO/COMODO Internet Security/scanners/bases.cav"
hash_check () {
# Download first 256 bytes (after header) of remote stream
extremecoders-re /
Last active Apr 18, 2019
Setting up Qemu with a tap interface

Setting up Qemu with a tap interface

There are two parts to networking within QEMU:

  • The virtual network device that is provided to the guest (e.g. a PCI network card).
  • The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).

Example: User mode network

extremecoders-re / future.c
Created Nov 27, 2017
TU-CTF RE Challenge - Future [250]
View future.c
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void genMatrix(char mat[5][5], char str[]) {
for (int i = 0; i < 25; i++) {
int m = (i * 2) % 25;
int f = (i * 7) % 25;
mat[m/5][m%5] = str[f];
View Install angr on

Environment: Windows 7 SP1 x86

  1. Start a Visual Studio Command Prompt
  2. Install unicorn pip install unicorn
  3. Install capstone from Python module for Windows - Binaries
  4. Install angr pip install angr
You can’t perform that action at this time.