Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heuristics #34

Merged
merged 10 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ rustflags = ["-C", "target-feature=+crt-static"]

[alias]
test_pc = "test --target=x86_64-unknown-linux-gnu"
debug_pc = "build --target=x86_64-unknown-linux-gnu"
cooperq marked this conversation as resolved.
Show resolved Hide resolved


[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
31 changes: 11 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
# Orca
# Rayhunter

```
@@@@@@@ @@@@@@ @@@ @@@ @@@ @@@ @@@ @@@ @@@ @@@ @@@@@@@ @@@@@@@@ @@@@@@@
@@! @@@ @@! @@@ @@! !@@ @@! @@@ @@! @@@ @@!@!@@@ @@! @@! @@! @@@
@!@!!@! @!@!@!@! !@!@! @!@!@!@! @!@ !@! @!@@!!@! @!! @!!!:! @!@!!@!
!!: :!! !!: !!! !!: !!: !!! !!: !!! !!: !!! !!: !!: !!: :!!
: : : : : : .: : : : :.:: : :: : : : :: ::: : : :



u. .u .
...ue888b .d88B :@8c . u
888R Y888r ="8888f8888r .udR88N us888u.
888R I888> 4888>'88" <888'888k .@88 "8888"
888R I888> 4888> ' 9888 'Y" 9888 9888
888R I888> 4888> 9888 9888 9888
u8888cJ888 .d888L .+ 9888 9888 9888
"*888*P" ^"8888*" ?8888u../ 9888 9888
'Y" "Y" "8888P' "888*""888"
"P' ^Y" ^Y'


Orca Realtime Cellular Analysis

_ _ _ _ _ _ _ _
)`'-.,_)`'-.,_)`'-.,_)`'-.,_)`'-.,_)`'-.,_)`'-.,_)`'-.,_

Expand All @@ -34,7 +25,7 @@ _ _ _ _ _ _ _ _
\__;
```

IMSI Catcher Catcher for the Orbic mobile hotspot. Based on code from [QCSuper](https://github.com/P1sec/QCSuper)
Ray Hunter is an IMSI Catcher Catcher for the Orbic mobile hotspot. Based on code from [QCSuper](https://github.com/P1sec/QCSuper)

cooperq marked this conversation as resolved.
Show resolved Hide resolved
**THIS CODE IS PROOF OF CONCEPT AND SHOULD NOT BE RELIED UPON IN HIGH RISK SITUATIONS**

Expand All @@ -61,8 +52,8 @@ Build for arm using `cargo build`
Run tests using `cargo test_pc`


Push the scripts in `scripts/` to /etc/init.d on device and make a directory called /data/wavehunter using `adb shell` (and sshell for your root shell if you followed the steps above)
Push the scripts in `scripts/` to /etc/init.d on device and make a directory called /data/rayhunter using `adb shell` (and sshell for your root shell if you followed the steps above)

you also need to copy `config.toml.example` to /data/wavehunter/config.toml
you also need to copy `config.toml.example` to /data/rayhunter/config.toml

Then run ./make.sh this will build the binary and push it over adb. Restart your device or run `/etc/init.d wavehunter_daemon start` on the device and you are good to go.
Then run ./make.sh this will build the binary and push it over adb. Restart your device or run `/etc/init.d/rayhunter_daemon start` on the device and you are good to go.
4 changes: 2 additions & 2 deletions make.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cargo build --release
adb push target/armv7-unknown-linux-gnueabihf/release/wavehunter /data/wavehunter/wavehunter
cargo build
adb push target/armv7-unknown-linux-gnueabihf/debug/rayhunter /data/rayhunter/rayhunter
cooperq marked this conversation as resolved.
Show resolved Hide resolved
8 changes: 4 additions & 4 deletions scripts/misc-daemon
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ case "$1" in
/etc/init.d/start_atfwd_daemon start
fi

if [ -f /etc/init.d/wavehunter_daemon ]
if [ -f /etc/init.d/rayhunter_daemon ]
then
/etc/init.d/wavehunter_daemon start
/etc/init.d/rayhunter_daemon start
fi

if [ -f /etc/init.d/start_stop_qti_ppp_le ]
Expand Down Expand Up @@ -72,9 +72,9 @@ case "$1" in
/etc/init.d/start_loc_launcher stop
fi

if [ -f /etc/init.d/wavehunter_daemon ]
if [ -f /etc/init.d/rayhunter_daemon ]
then
/etc/init.d/wavehunter_daemon stop
/etc/init.d/rayhunter_daemon stop
fi

if [ -f /etc/init.d/init_qcom_audio ]
Expand Down
27 changes: 27 additions & 0 deletions scripts/rayhunter_daemon
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#! /bin/sshell

set -e

case "$1" in
start)
echo -n "Starting rayhunter: "
start-stop-daemon -S -b --make-pidfile --pidfile /tmp/rayhunter.pid \
--startas /bin/bash -- -c "exec /data/rayhunter/rayhunter /data/rayhunter/config.toml > /data/rayhunter/rayhunter.log 2>&1"
echo "done"
;;
stop)
echo -n "Stopping rayhunter: "
start-stop-daemon -K -p /tmp/rayhunter.pid
echo "done"
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage atfwd_daemon{ start | stop | restart }" >&2
cooperq marked this conversation as resolved.
Show resolved Hide resolved
exit 1
;;
esac

exit 0
27 changes: 0 additions & 27 deletions scripts/wavehunter_daemon

This file was deleted.

4 changes: 2 additions & 2 deletions wavehunter/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct Config {
impl Default for Config {
fn default() -> Self {
Config {
qmdl_store_path: "/data/wavehunter".to_string(),
qmdl_store_path: "/data/wavehunter/qmdl".to_string(),
cooperq marked this conversation as resolved.
Show resolved Hide resolved
port: 8080,
readonly_mode: false,
}
Expand All @@ -33,7 +33,7 @@ pub fn parse_config<P>(path: P) -> Result<Config, WavehunterError> where P: AsRe
.map_err(WavehunterError::ConfigFileParsingError)?;
if let Some(path) = parsed_config.qmdl_store_path { config.qmdl_store_path = path }
if let Some(port) = parsed_config.port { config.port = port }
if let Some(debug_mode) = parsed_config.readonly_mode { config.readonly_mode = debug_mode }
if let Some(readonly_mode) = parsed_config.readonly_mode { config.readonly_mode = readonly_mode }
}
Ok(config)
}
Expand Down
Loading