This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:latest | |
ARG DEBIAN_FRONTEND=noninteractive | |
RUN apt update -y && \ | |
apt install -y \ | |
libgmp-dev libmpfr-dev libmpc-dev python3 python3-dev python3-pip gcc musl-dev \ | |
libssl-dev libffi-dev git gcc g++ make cmake git sagemath | |
# install neca |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/apache2/apache2.conf | |
/etc/apache2/conf-available/charset.conf | |
/etc/apache2/conf-available/localized-error-pages.conf | |
/etc/apache2/conf-available/other-vhosts-access-log.conf | |
/etc/apache2/conf-available/security.conf | |
/etc/apache2/conf-available/serve-cgi-bin.conf | |
/etc/apache2/envvars | |
/etc/apache2/magic | |
/etc/apache2/mods-available/access_compat.load | |
/etc/apache2/mods-available/actions.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To build a A10+ (AOSP/LOS based) on Ubuntu 20.04+ (or distros based on it), there are four main steps: | |
(This guide is applicable for recoveries as well (TWRP, OFRP...)) | |
Working on Android 9, 10, 11 and 12 | |
################################################################# | |
# Step 1: Setup your environment # | |
################################################################# | |
****Setup Linux to build Android**** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File: /usr/include/asm/unistd_64.h | |
#ifndef _ASM_X86_UNISTD_64_H | |
#define _ASM_X86_UNISTD_64_H 1 | |
#define __NR_read 0 | |
#define __NR_write 1 | |
#define __NR_open 2 | |
#define __NR_close 3 | |
#define __NR_stat 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILENAME=server | |
# Generate a public/private key pair: | |
if [ ! -f "$FILENAME.key" ]; then | |
openssl genrsa -out "$FILENAME.key" 1024 | |
fi | |
# Generate a self signed certificate: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "action_mailer" | |
ActionMailer::Base.delivery_method = :smtp | |
ActionMailer::Base.smtp_settings = { | |
:address => "smtp.server.com", | |
:port => 587, | |
:domain => "domain.com", | |
:authentication => :plain, | |
:user_name => "username", | |
:password => "password", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $ npm install node-rsa | |
const NodeRSA = require('node-rsa'); | |
const keyPair = new NodeRSA({b: 512}).generateKeyPair(); | |
const publicKey = keyPair.exportKey('public') | |
const privateKey = keyPair.exportKey('private') | |
console.log(publicKey); | |
console.log("\n\n"); | |
console.log(privateKey); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import signal | |
from types import FrameType | |
from typing import Union | |
def sighandler(signum: int, frame: Union[FrameType, None]) -> signal.Handlers: | |
sys.stdout.write("\r") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"strings" | |
) | |
func handler(w http.ResponseWriter, r *http.Request) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from pwn import * | |
''' | |
gdb> info functions | |
0x00000000004011b6 print_flag | |
''' | |
addr = p64(0x4011b6) |
NewerOlder