Skip to content

Instantly share code, notes, and snippets.

@oldnomad
oldnomad / rustore.md
Created October 21, 2024 18:37
RuStore API

RuStore API for application installation

  • URL for human-readable application info page has format https://www.rustore.ru/catalog/app/{packageName}.
  • Application info as a JSON object is available at URL https://backapi.rustore.ru/applicationData/overallInfo/{packageName}.
  • APK reference URL is https://backapi.rustore.ru/applicationData/download-link. It accepts only POST requests (see below).

Application info

Application info JSON object has following fields:

  • code: contains string OK (on success).
@Mirochiu
Mirochiu / genkeystore.sh
Created March 31, 2023 02:53
Use pk8 and x509.pem files in AOSP to generate the keystore file for Android Studio
#!/usr/bin/bash
# generate the keystore and show the result
storepassword="password"
outkeystore="mygen.keystore"
if [ $# -gt 0 ]; then
outkeystore="$1"
fi
if [ $# -gt 1 ]; then
@Forgo7ten
Forgo7ten / Base.java
Created February 3, 2022 16:00
Base64 自定义字符表加解密
package my.crypto;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
/**
* @ClassName Base
* @Description Base64自定义加解密示例
* @Author Palmer
* @Date 2022/2/3
@Forgo7ten
Forgo7ten / FirstShellTool.java
Created November 23, 2021 00:19
修改dex文件并修复 CheckSum、filesize、sha1;将某文件添加到dex文件的末尾
import java.io.*;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.zip.Adler32;
public class FirstShellTool {
private static final String originApk = "C:\\Users\\Palmer\\Desktop\\classes3.dex";
@ox1111
ox1111 / automatically_redirect.js
Created May 15, 2020 01:37
Frida Script to automatically redirect all java.net.URLConnections through a proxy of your choosing
// Frida Script to automatically redirect all java.net.URLConnections through a proxy of your choosing
setImmediate(function() {
Java.perform(function() {
var url = Java.use("java.net.URL");
var proxyTypeI = Java.use('java.net.Proxy$Type');
var inetSockAddrWrap = Java.use("java.net.InetSocketAddress");
var proxy = Java.use('java.net.Proxy');
@sharunkumar
sharunkumar / adb-dns.bat
Created February 7, 2020 07:08
Enabling / Disabling private DNS in android via ADB
rem to disable private dns
adb shell settings put global private_dns_mode off
rem to enable private dns with hostname (example with dns.adguard.com)
adb shell settings put global private_dns_mode hostname
adb shell settings put global private_dns_specifier dns.adguard.com
@aveuiller
aveuiller / packageAndroid.sh
Last active August 19, 2024 07:36
Extract the Android .odex files and package a new android.jar with the retrieved classes
#!/bin/sh
##
# Usage:
# ./convert.sh /path/to/framework /path/to/out $apiVersion $arch
#
# $arch is mandatory only in case of an ART system and defines the boot folder to use (arm, x86, x86_64).
##
frameworkDir=$1
# Final output directory
@irbull
irbull / OpenSSLExample.cpp
Created August 11, 2016 18:32
Code signing and verification with OpenSSL
#include <iostream>
#include <openssl/aes.h>
#include <openssl/evp.h>
#include <openssl/rsa.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/bio.h>
#include <openssl/err.h>
#include <assert.h>

HOW TO INSTALL pjreddie/DARKNET ON OSX

Install Opencv

  • use brew
brew install opencv
  • setup opencv.pc to pkgconfig, e.g :
@darconeous
darconeous / os-x-syslog-server.md
Last active April 14, 2025 15:28
Using OS X as a Syslog Server

Using OS X as a Syslog Server

This document describes how to set up an OS X to be a syslog server that logs messages from the local network. It was largely meant for my own purposes so that I don't forget what I did, but feel free to use it for your own purposes.

A problem with just "turning this on" is that you will not see the correct hostname in the syslog entries. What we will do is use