Changes to be committed:
Some checks failed
gitea/Frida-android-native/pipeline/head There was a failure building this commit
Some checks failed
gitea/Frida-android-native/pipeline/head There was a failure building this commit
modified: Cargo.toml modified: src/main.rs
This commit is contained in:
parent
91ef43edef
commit
b321f36e9b
@ -8,6 +8,10 @@ keywords = ["tun", "network", "tunnel", "vpn"]
|
|||||||
categories = ["network-programming", "asynchronous"]
|
categories = ["network-programming", "asynchronous"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
crate-type = ["cdylib"]
|
||||||
|
path = "src/main.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = "2.33"
|
clap = "2.33"
|
||||||
aes-gcm = "0.10.3"
|
aes-gcm = "0.10.3"
|
||||||
|
12
src/main.rs
12
src/main.rs
@ -1,10 +1,10 @@
|
|||||||
/*#![cfg(target_os = "android")]
|
#![cfg(target_os = "android")]
|
||||||
|
|
||||||
use jni::{
|
use jni::{
|
||||||
objects::{JClass, JString},
|
objects::{JClass, JString},
|
||||||
sys::{jboolean, jchar, jint},
|
sys::{jboolean, jchar, jint},
|
||||||
JNIEnv,
|
JNIEnv,
|
||||||
};*/
|
};
|
||||||
use std::{error::Error, fs, net::Ipv4Addr, str};
|
use std::{error::Error, fs, net::Ipv4Addr, str};
|
||||||
use clap::{App, Arg, ArgMatches};
|
use clap::{App, Arg, ArgMatches};
|
||||||
use env_logger::Builder;
|
use env_logger::Builder;
|
||||||
@ -15,9 +15,9 @@ use fast32::base32::RFC4648;
|
|||||||
mod config;
|
mod config;
|
||||||
mod client;
|
mod client;
|
||||||
mod udp;
|
mod udp;
|
||||||
//mod mobile;
|
mod mobile;
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn Java_com_alterdekim_frida_FridaLib_run(
|
pub unsafe extern "C" fn Java_com_alterdekim_frida_FridaLib_run(
|
||||||
mut env: JNIEnv,
|
mut env: JNIEnv,
|
||||||
@ -35,8 +35,9 @@ pub unsafe extern "C" fn Java_com_alterdekim_frida_FridaLib_run(
|
|||||||
pub unsafe extern "C" fn Java_com_alterdekim_frida_FridaLib_stop(_env: JNIEnv, _: JClass) -> jint {
|
pub unsafe extern "C" fn Java_com_alterdekim_frida_FridaLib_stop(_env: JNIEnv, _: JClass) -> jint {
|
||||||
mobile::mobile_stop()
|
mobile::mobile_stop()
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
// Initialize the logger with 'info' as the default level
|
// Initialize the logger with 'info' as the default level
|
||||||
@ -68,3 +69,4 @@ async fn main() {
|
|||||||
|
|
||||||
client::client_mode(config, matches.value_of("fd").unwrap().parse().unwrap()).await;
|
client::client_mode(config, matches.value_of("fd").unwrap().parse().unwrap()).await;
|
||||||
}
|
}
|
||||||
|
*/
|
Loading…
x
Reference in New Issue
Block a user