Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Ramin Farajpour Cami raminfp

🏠
Working from home
Block or report user

Report or block raminfp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@raminfp
raminfp / Debootstrap.md
Created Nov 19, 2018
How to build your kernel without compile kernel source with debootstrap?
View Debootstrap.md

Let's Start (Weekend Notes) ...

Install debootstrap :

$ apt-get install debootstrap

Minimal Debian distribution with debootstrap :

@raminfp
raminfp / Buildroot.md
Created Nov 19, 2018
How to build your kernel "vmlinuz-<version>-generic" without compile kernel source with BUILDROOT/QEMU?
View Buildroot.md

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)

View gist:c0c94a04a0a6541e6089becadf5d11b4
https://elixir.bootlin.com/linux/latest/source/fs/read_write.c
@raminfp
raminfp / adb_crash.txt
Created Oct 9, 2018
ADB Buffer Overflow
View adb_crash.txt
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...
View Padding.c
#include <stdio.h>
#include <string.h>
struct struc1
{
int a; int b;
char c1;
char c2;
float f;
};
View cmpdigit.c
/*
cmp_digit(2, 4);
| |
| |
esi edi
ret:
0 : true
1 : false
*/
@raminfp
raminfp / bypass_anti_shell.php
Created Jan 24, 2018
PHP bypass anti shell
View bypass_anti_shell.php
<?php
$hello = 'Hello';
$world = 'World!';
$str = 'echo "Say : '. $hello . ' ' . $world . '";';
$filename='e'.'v'.'a'.'l(\''. $str. '\');';
$newfunc = create_function('', $filename);
$newfunc();
?>
View vscode.py
/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 / spectre.c
Created Jan 5, 2018 — forked from rootkea/spectre.c
PoC from Spectre Attacks: Exploiting Speculative Execution (https://spectreattack.com/spectre.pdf)
View spectre.c
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@raminfp
raminfp / docker-ce-ubuntu-17.10.md
Created Dec 13, 2017
Install Docker CE on Ubuntu 17.10 and Docker-compose
View docker-ce-ubuntu-17.10.md

Installing Docker CE on Ubuntu 17.10 Artful Aardvark

As of 20/10/2017, a release file for Ubuntu 17.10 Artful Aardvark is not available on Download Docker.

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
You can’t perform that action at this time.