Skip to content

Instantly share code, notes, and snippets.

View raminfp's full-sized avatar
✔️
Verified

Ramin Farajpour Cami raminfp

✔️
Verified
View GitHub Profile
/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py
from __future__ import unicode_literals
import errno
import os
import re
import socket
import sys
@raminfp
raminfp / bypass_anti_shell.php
Created January 24, 2018 14:34
PHP bypass anti shell
<?php
$hello = 'Hello';
$world = 'World!';
$str = 'echo "Say : '. $hello . ' ' . $world . '";';
$filename='e'.'v'.'a'.'l(\''. $str. '\');';
$newfunc = create_function('', $filename);
$newfunc();
?>
/*
cmp_digit(2, 4);
| |
| |
esi edi
ret:
0 : true
1 : false
*/
#include <stdio.h>
#include <string.h>
struct struc1
{
int a; int b;
char c1;
char c2;
float f;
};
@raminfp
raminfp / adb_crash.txt
Created October 9, 2018 11:33
ADB Buffer Overflow
ADB server didn't ACK
Full server startup log: /tmp/adb.0.log
Server had pid: 31526
--- adb starting (pid 31526) ---
adb I 10-08 15:33:00 31526 31526 main.cpp:56] Android Debug Bridge version 1.0.40
adb I 10-08 15:33:00 31526 31526 main.cpp:56] Version 4986621
adb I 10-08 15:33:00 31526 31526 main.cpp:56] Installed as /home/user/Android/Sdk/platform-tools/adb
adb I 10-08 15:33:00 31526 31526 main.cpp:56
]
adb I 10-08 15:33:00 31526 31526 auth.cpp:421] adb_auth_init...
@raminfp
raminfp / Buildroot.md
Created November 19, 2018 17:27
How to build your kernel "vmlinuz-<version>-generic" without compile kernel source with BUILDROOT/QEMU?

Let's Start (Weekend Notes) ...

Buildroot (BR) (https://buildroot.org/):

$ git clone git://git.buildroot.net/buildroot
$ cd buildroot

Buildroot uses the same interface as the kernel for configuration (ncurses based, make sure you have ncurses-devel sudo apt-get install libncurses-dev and bison sudo apt-get install bison installed)

@raminfp
raminfp / Debootstrap.md
Created November 19, 2018 17:34
How to build your kernel without compile kernel source with debootstrap?

Let's Start (Weekend Notes) ...

Install debootstrap :

$ apt-get install debootstrap

Minimal Debian distribution with debootstrap :

{"app_name":"Telegram","timestamp":"2021-04-08 15:36:02.00 +0430","app_version":"7.6.2","slice_uuid":"ea40642d-cc97-37e0-afaa-e01a799b2b4e","adam_id":686449807,"build_version":"20561","platform":2,"bundleID":"ph.telegra.Telegraph","share_with_app_devs":0,"is_first_party":0,"bug_type":"109","os_version":"iPhone OS 14.4.2 (18D70)","incident_id":"98666FEF-B245-431C-829E-F1D355AD2512","name":"Telegram"}
Incident Identifier: 98666FEF-B245-431C-829E-F1D355AD2512
CrashReporter Key: a879733b0cea7a8cbcfe439a3a90fc12dc9b5614
Hardware Model: iPad6,11
Process: Telegram [3298]
Path: /private/var/containers/Bundle/Application/BB9A2543-2C53-480E-A909-C2F6A404B5BA/Telegram.app/Telegram
Identifier: ph.telegra.Telegraph
Version: 20561 (7.6.2)
AppStoreTools: 12D4d
AppVariant: 1:iPad6,11:13
write-host "Hello"
@raminfp
raminfp / using-wget-with-socks-proxy
Created October 22, 2022 07:38 — forked from ekiara/using-wget-with-socks-proxy
Using wget with socks proxy
# using-wget-with-socks-proxy
# This should work for everything includeing curl, pip, pipenv, etc
# TLDR: Use proxychains (https://github.com/haad/proxychains)
## INSTALL PROXY CHAINS ##
$ sudo apt update -y
$ sudo apt install proxychains
## EDIT PROXYCHAINS CONFIG ##