Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

soxfmr

🎯
Focusing
  • /dev/null
View GitHub Profile
@soxfmr
soxfmr / main.c
Last active Dec 5, 2020
Anti-Debugging in NtQueryObject - ObjectAllTypesInformation
View main.c
/**
Anti-Debugging in NtQueryObject - ObjectAllTypesInformation
Copyright (C) 2018 soxfmr@foxmail.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@soxfmr
soxfmr / main.c
Created Nov 25, 2017
An example of using PEM encoded RSA private keys with CAPI
View main.c
/*
* An example of using PEM encoded RSA private keys with CAPI
* - Modified on March 29th 2014 to show how to use PEM encoded RSA public key
*
* Copyright (c) 2012 Mounir IDRASSI <mounir.idrassi@idrix.fr>. All rights reserved.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE.
*
@soxfmr
soxfmr / install-docker-kali.sh
Created May 4, 2017
Install docker on Kali Linux Distro
View install-docker-kali.sh
#!/bin/sh
# Anyway, fuck GFW
# This script was created for reduce the latency of the network on Mainland
# If you were lucky not living in such place
# Please references: https://termilus.com/blog/2016/11/04/how-to-install-docker-on-kali-linux/
echo 'deb http://mirrors.ustc.edu.cn/debian wheezy-backports main' > /etc/apt/sources.list.d/backports.list
apt-get update && apt-get install apt-transport-https ca-certificates -y
# apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo 'deb http://mirrors.ustc.edu.cn/docker-apt/repo debian-wheezy main' > /etc/apt/sources.list.d/docker.list
apt-get update && apt-get install docker-engine -y
View fix-msfvenom.sh
#!/bin/bash
# OS: Kali-Linux-2016.1
# After upgraded and installed some sort of packges, seems 'msfvenom' command has be took down.
# This script will install the ruby packages which is missing.
# Date: 2016-09-18 04:26:00 GMT+08
# Author: soxfmr@foxmail.com
# Requirement libraris
apt-get install libpcap-dev libpq-dev zlib1g-dev libsqlite3-dev
@soxfmr
soxfmr / gist:9d8afe27c370f2aa52188f7f6d385703
Created Sep 11, 2016 — forked from bortzmeyer/gist:1284249
The only simple way to do SSH in Python today is to use subprocess + OpenSSH...
View gist:9d8afe27c370f2aa52188f7f6d385703
#!/usr/bin/python
# All SSH libraries for Python are junk (2011-10-13).
# Too low-level (libssh2), too buggy (paramiko), too complicated
# (both), too poor in features (no use of the agent, for instance)
# Here is the right solution today:
import subprocess
import sys
@soxfmr
soxfmr / Rename.ps1
Created Mar 1, 2016 — forked from timnew/Rename.ps1
Script to Rename Computer without Reboot
View Rename.ps1
$ComputerName = "New Name"
Remove-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "Hostname"
Remove-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "NV Hostname"
New-PSDrive -name HKU -PSProvider "Registry" -Root "HKEY_USERS"
Set-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Computername\Computername" -name "Computername" -value $ComputerName
Set-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Computername\ActiveComputername" -name "Computername" -value $ComputerName
Set-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "Hostname" -value $ComputerName