Skip to content

Instantly share code, notes, and snippets.

extremecoders-re

Block or report user

Report or block extremecoders-re

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@extremecoders-re
extremecoders-re / hexdump.idc
Created Jun 26, 2019
IDC Script to do hexdump
View hexdump.idc
//
// IDC Script to do hexdump
//
auto i;
auto addr = get_inf_attr(INF_MIN_EA);
auto max_addr = get_inf_attr(INF_MAX_EA);
auto ofile = fopen("hexdump.txt", "w");
auto b;
for (addr=0; addr<max_addr; addr=addr+16)
@extremecoders-re
extremecoders-re / repo-reset.md
Created Apr 17, 2019 — forked from heiswayi/repo-reset.md
GitHub - Delete commits history with git commands
View repo-reset.md

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
extremecoders-re / docker_ipc.md
Last active Jan 21, 2019
Docker IPC using named pipe
View docker_ipc.md

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
extremecoders-re / default.py
Last active Jan 19, 2019
get_video_url fix
View default.py
def get_video_url(url):
videos = []
params = []
addon_log(url)
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
extremecoders-re / vmware-no-vmem.md
Last active Jun 26, 2019
Disable vmem files in VMWare Workstation.
View vmware-no-vmem.md

Prevent creation of vmmem files in VmWare

Issue

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

Solution

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
extremecoders-re / openwrt-qemu.md
Last active Jul 17, 2019
Running OpenWRT ARM under QEMU
View openwrt-qemu.md

Environment

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
extremecoders-re / Debug a program in qemu with piped input.md
Last active Jul 25, 2018
Debug a program in qemu with piped input
View Debug a program in qemu with piped input.md

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
extremecoders-re / cav-updater.sh
Created Mar 30, 2018
Comodo manual updater (Incomplete)
View cav-updater.sh
#!/usr/bin/sh
echo "[+] Checking for updates..."
path_bases_cav="/c/Program Files/COMODO/COMODO Internet Security/scanners/bases.cav"
update_url="http://cdn.download.comodo.com/av/updates58/sigs/bases/bases.cav"
hash_check () {
# Download first 256 bytes (after header) of remote stream
tmp_first_256_remote=`mktemp`
@extremecoders-re
extremecoders-re / qemu-networking.md
Last active Jul 17, 2019
Setting up Qemu with a tap interface
View qemu-networking.md

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
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];
}
You can’t perform that action at this time.