Skip to content

Commit

Permalink
bugfix: Automatically sanitizes phone numbers before CNAM lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
hiibolt committed Aug 1, 2024
1 parent ebfbf1b commit 23b677b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 38 deletions.
74 changes: 37 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,54 +22,65 @@ All commands are alternatively available as slash commands that better indicate

## Commands

### Admin

` >>admin announce <sections> <message>`
- Announces a message to all whitelisted users.

` >>admin whitelist <section> <user id>`
- Adds a person to the authorized user list.

` >>admin blacklist <section> <user id>`
- Removes a person from the authorized user list.

` >>admin dm <user id> <message>`
- DMs a message to a specific user.

### OSINT

#### Queries
#### Hashing

` >>osint query hash <hash>`
- Queries for leaks based on a hash.
` >>osint hash dehash <hash>`
- Dehashes a hash into pre-cracked passwords.

` >>osint query name <name>`
- Queries for leaks based on a name.
` >>osint hash rehash <password>`
- Rehashes a password into pre-hashed hashes.

` >>osint query email <email>`
- Queries for leaks based on an email.
#### Queries

` >>osint query username <username>`
- Queries for leaks based on a username.

` >>osint query ip <ip>`
- Queries for leaks based on a last IP.

` >>osint query password <password>`
- Queries for leaks based on a password.

#### Hashing
` >>osint query hash <hash>`
- Queries for leaks based on a hash.

` >>osint hash dehash <hash>`
- Dehashes a hash into pre-cracked passwords.
` >>osint query ip <ip>`
- Queries for leaks based on a last IP.

` >>osint hash rehash <password>`
- Rehashes a password into pre-hashed hashes.
` >>osint query name <name>`
- Queries for leaks based on a name.

` >>osint query email <email>`
- Queries for leaks based on an email.

#### Other

` >>osint sherlock <username>`
- Cross-references sites with a given username.

` >>osint geolocate <ip>`
- Geolocates an IP.

` >>osint phone <phone number>`
- Perform a Caller ID lookup on a phone number.

` >>osint geolocate <ip>`
- Geolocates an IP.

### R6

#### OPSEC

` >>r6 opsec recon <username>`
- Analyzes a Ubisoft account for suspicious behaviour based on their username (PC only).

` >>r6 opsec psn <username>`
- Looks up a Ubisoft account based on their registered PSN username.

Expand All @@ -79,14 +90,14 @@ All commands are alternatively available as slash commands that better indicate
` >>r6 opsec applications <username>`
- Looks up a Ubisoft account based on their username (PC only).

` >>r6 opsec recon <username>`
- Analyzes a Ubisoft account for suspicious behaviour based on their username (PC only).

` >>r6 opsec xbox <username>`
- Looks up a Ubisoft account based on their registered Xbox username.

#### Economy

` >>r6 econ graph <item name | item id>`
- Graphs the all-time history of an item.

` >>r6 econ analyze <item name | item id>`
- Creates a detailed data sheet on an item.

Expand All @@ -101,19 +112,8 @@ All commands are alternatively available as slash commands that better indicate
` >>r6 econ transfer <ubisoft email> <ubisoft password>`
- Finds the items with the least sellers either globally or on the account with the provided login.

### Admin

` >>admin blacklist <section> <user id>`
- Removes a person from the authorized user list.

` >>admin dm <user id> <message>`
- DMs a message to a specific user.

` >>admin announce <sections> <message>`
- Announces a message to all whitelisted users.

` >>admin whitelist <section> <user id>`
- Adds a person to the authorized user list.
` >>r6 econ graph <item name | item id>`
- Graphs the all-time history of an item.


## Setup
Expand Down
5 changes: 4 additions & 1 deletion src/sections/osint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,10 @@ pub async fn cnam_lookup(

let response = backend_handles.bulkvs.lock()
.await
.query_phone_number(&phone_number)
.query_phone_number(&phone_number
.replace("-", "")
.replace("(", "")
.replace(")", ""))
.map_err(|e| format!("{e:#?}"))?;

let mut message = String::new();
Expand Down

0 comments on commit 23b677b

Please sign in to comment.