Skip to content

Instantly share code, notes, and snippets.

View soxfmr's full-sized avatar
🎯
Focusing

soxfmr

🎯
Focusing
  • /dev/null
View GitHub Profile
@soxfmr
soxfmr / Rename.ps1
Created March 1, 2016 07:21 — forked from timnew/Rename.ps1
Script to Rename Computer without Reboot
$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
@soxfmr
soxfmr / main.c
Last active June 11, 2022 21:26
Anti-Debugging in NtQueryObject - ObjectAllTypesInformation
/**
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 November 25, 2017 10:37
An example of using PEM encoded RSA private keys with CAPI
/*
* 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 04:10
Install docker on Kali Linux Distro
#!/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
#!/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 September 11, 2016 08:27 — forked from bortzmeyer/gist:1284249
The only simple way to do SSH in Python today is to use subprocess + OpenSSH...
#!/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