Changes to be committed:
new file: .gitignore new file: Cargo.lock new file: Cargo.toml new file: src/lib.rs
This commit is contained in:
commit
f467fa77ca
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/target
|
2214
Cargo.lock
generated
Normal file
2214
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
40
Cargo.toml
Normal file
40
Cargo.toml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
[package]
|
||||||
|
name = "frida_android"
|
||||||
|
version = "0.1.2"
|
||||||
|
edition = "2021"
|
||||||
|
license = "Apache-2.0"
|
||||||
|
authors = ["alterdekim"]
|
||||||
|
keywords = ["tun", "network", "tunnel", "vpn"]
|
||||||
|
categories = ["network-programming", "asynchronous"]
|
||||||
|
readme = "README.md"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
crate-type = ["dylib"]
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
clap = "2.33"
|
||||||
|
aes-gcm = "0.10.3"
|
||||||
|
tokio = { version = "1", features = ["full", "signal", "tracing"] }
|
||||||
|
serde = "1.0"
|
||||||
|
serde_derive = "1.0.190"
|
||||||
|
rand = { version = "0.8.5", features = ["small_rng", "getrandom", "std_rng"] }
|
||||||
|
block-modes = "0.8"
|
||||||
|
block-padding = "0.2"
|
||||||
|
generic-array = "0.14"
|
||||||
|
socket2 = "0.4"
|
||||||
|
env_logger = "0.9"
|
||||||
|
log = "0.4.20"
|
||||||
|
futures = "0.3.30"
|
||||||
|
tun2 = { version = "2", features = ["async"] }
|
||||||
|
packet = "0.1.4"
|
||||||
|
crossbeam-channel = "0.5.13"
|
||||||
|
hex = "0.4"
|
||||||
|
serde_yaml = "0.9.34"
|
||||||
|
x25519-dalek = { version = "2.0.1", features = ["getrandom", "static_secrets"] }
|
||||||
|
base64 = "0.22.1"
|
||||||
|
chrono = "0.4.38"
|
||||||
|
console-subscriber = "0.4.0"
|
||||||
|
network-interface = "2.0.0"
|
||||||
|
|
||||||
|
[target.'cfg(target_os="android")'.dependencies]
|
||||||
|
jni = { version = "0.21.1", default-features = false }
|
16
src/lib.rs
Normal file
16
src/lib.rs
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#[cfg(target_os="android")]
|
||||||
|
#[allow(non_snake_case)]
|
||||||
|
pub mod android {
|
||||||
|
extern crate jni;
|
||||||
|
use super::*;
|
||||||
|
use self::jni::JNIEnv;
|
||||||
|
use self::jni::objects::{JClass, JString};
|
||||||
|
use self::jni::sys::{jstring};#[no_mangle]
|
||||||
|
pub unsafe extern fn Java_com_example_greet_Hello_greeting(env: JNIEnv, _: JClass, java_name: JString) -> jstring {
|
||||||
|
|
||||||
|
let name: String = env.get_string(java_pattern).expect("invalid pattern string").unwrap().into();
|
||||||
|
let mut greeting_string: String = "Hello ".to_owned();
|
||||||
|
|
||||||
|
greeting_string.push_str(&name);env.new_string(greeting_string).unwrap().into_inner()
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user