
SocialPwned is an OSINT tool that allows to get the emails, from a target, published in social networks such as Instagram, Linkedin and Twitter to find possible credentials leaks in PwnDB or Dehashed and obtain Google account information via GHunt.
SocialPwned ist ein OSINT-Tool, mit dem die E-Mail-Adressen eines Ziels aus sozialen Netzwerken wie Instagram, LinkedIn und Twitter extrahiert werden können, um mögliche Credential-Leaks in PwnDB oder Dehashed zu finden und über GHunt Google-Kontoinformationen zu erhalten.
Der Zweck dieses Tools ist es, die Suche nach verwundbaren Zielen während der Footprinting-Phase im Rahmen eines ethischen Hackings zu erleichtern. Es ist üblich, dass Mitarbeiter eines Unternehmens ihre E-Mails in sozialen Netzwerken – sei es beruflich oder privat – veröffentlichen. Wenn diese E-Mails mit ihren Zugangsdaten durchgesickert sind, ist es möglich, dass die gefundenen Passwörter in der zu auditierenden Umgebung wiederverwendet wurden. Falls nicht, hat man zumindest eine Vorstellung von den Mustern, denen das Ziel bei der Passworterstellung folgt, um andere Angriffe mit einer höheren Erfolgsrate durchführen zu können.
SocialPwned verwendet verschiedene Module:
$ service docker start
$ docker pull mrtuxx/socialpwned
$ docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --help
HINWEIS: Der Docker-Dienst muss korrekt installiert sein.
Die Installation von Tor hängt von Ihrem System ab. Auf einem Debian-System:
$ sudo apt-get install tor
$ /etc/init.d/tor start
Klonen Sie das Repository mit Git:
$ git clone https://github.com/MrTuxx/SocialPwned.git
$ cd SocialPwned
$ sudo pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint
$ sudo pip3 install -r requirements.txt
$ sudo python3 socialpwned.py --credentials credentials.json --help
Damit das GHunt-Modul korrekt funktioniert, müssen Sie die folgenden Schritte ausführen:
Um die Instagram- und LinkedIn-Funktionen zu nutzen, benötigen Sie ein Konto auf den jeweiligen sozialen Netzwerken. Die Anmeldedaten müssen in einer JSON-Datei angegeben werden:
{
"instagram":{
"username":"username",
"password":"password"
},
"linkedin":{
"email":"email",
"password":"password"
},
"ghunt":{
"SID":"SID",
"SSID":"SSID",
"APISID":"APISID",
"SAPISID":"SAPISID",
"HSID":"HSID"
},
"dehashed":{
"email":"email",
"apikey":"apikey"
}
}
HINWEIS: Die für das GHunt-Modul erforderlichen Cookies können gemäß den hier beschriebenen Schritten bezogen werden.
usage: socialpwned.py [-h] --credentials CREDENTIALS [--pwndb] [--tor-proxy PROXY] [--instagram] [--info QUERY]
[--location LOCATION_ID] [--hashtag-ig QUERY] [--target-ig USERNAME] [--search-users-ig QUERY]
[--my-followers] [--my-followings] [--followers-ig] [--followings-ig] [--linkedin]
[--company COMPANY_ID] [--search-companies QUERY] [--employees] [--my-contacts]
[--user-contacts USER_ID] [--search-users-in QUERY] [--target-in USERNAME] [--add-contacts]
[--add-a-contact USER_ID] [--twitter] [--limit LIMIT] [--year YEAR] [--since DATE]
[--until DATE] [--profile-full] [--all-tw] [--target-tw USERNAME] [--hashtag-tw USERNAME]
[--followers-tw] [--followings-tw] [--ghunt] [--email-gh [email protected]] [--dehashed]
[--email-dh [email protected]]
Wenn Sie ein Docker-Image ziehen, sollten Sie Folgendes ausführen:
docker run -v $(pwd)/<Ihre JSON-DATEI MIT ANMELDEDATEN>:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json <BEFEHLE>
Halten Sie LinkedIn- und Instagram-Sitzungen in einem Browser offen, um mögliche Sperren zu umgehen. Interagieren Sie auf normale Weise.
Stellen Sie sicher, dass Sie ein breites Netzwerk an Kontakten, gemeinsamen Freunden und einige Mitarbeiter in Ihrem Netzwerk haben, bevor Sie versuchen, alle E-Mails der Mitarbeiter einer Organisation auf LinkedIn zu erhalten. Oft können Sie die Informationen eines Kontakts nicht sehen, wenn er nicht in Ihrem Netzwerk ist.
Vermeiden Sie massive Suchanfragen, um nicht gesperrt zu werden.
Kombinieren Sie die Module, wenn es sich um ein bestimmtes Ziel handelt oder nicht mit einer großen Datenmenge umgegangen werden muss, da es sonst fehlschlagen oder Sie gesperrt werden könnten.
Jedes Mal, wenn SocialPwned ausgeführt wird, wird ein Verzeichnis mit folgendem Format erstellt:
output
└── session_year_month_day_time
├── dehashed
│ ├── raw_dehashed.txt
│ └── socialpwned_dehashed.txt
├── emails
│ └── socialpwned_emails.txt
├── instagram
│ └── socialpwned_instagram.txt
├── linkedin_userames
│ ├── first.last.txt
│ ├── firstl.txt
│ ├── first.txt
│ ├── f.last.txt
│ ├── flast.txt
│ ├── lastf.txt
│ └── rawnames.txt
├── pwndb
│ ├── passwords_pwndb.txt
│ ├── pwndb.txt
│ └── socialpwned_pwndb.txt
├── socialpwned.json
└── twitter
└── socialpwned_twitter.txt
Hier sind einige Beispiele:

docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --instagram --info España
docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --instagram --location 832578276
docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --instagram --hashtag-ig someHashtag --pwndb
docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --instagram --target-ig username --pwndb
docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --instagram --target-ig username --followers-ig --followings-ig --pwndb

docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --linkedin --search-companies "Mein Ziel"
docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --linkedin --search-companies "Mein Ziel" --employees --pwndb
docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --linkedin --company 123456789 --employees --pwndb
docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --linkedin --company 123456789 --employees --add-contacts
docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --linkedin --user-contacts user-id --pwndb
docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --linkedin --user-contacts user-id --add-contacts

docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --twitter --hashtag-tw someHashtag --pwndb --limit 200 --dehashed
docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --twitter --target-tw username --all-tw --pwndb --dehashed --ghunt
docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --twitter --target-tw username --all-tw --followers-tw --followings-tw --pwndb

docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --ghunt --email-gh "[email protected]"
HINWEIS: Sobald die Flagge --ghunt hinzugefügt wird, wird dieses Modul ausgeführt. Bei einer Massensuche kann es aufgrund der Anzahl der Anfragen fehlschlagen.

docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --dehashed --email-dh "[email protected]"
HINWEIS: Das Hinzufügen der Flagge --dehashed am Ende jeder Suche führt dazu, dass für jede E-Mail eine API-Anfrage gestellt wird.
docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --instagram --target-ig username --followers-ig --followings-ig --linkedin --company 123456789 --employees --twitter --target-tw username --all-tw --pwndb --ghunt --dehashed
docker run -v $(pwd)/credentials.json:/socialpwned/credentials.json -v $(pwd)/output:/socialpwned/output -it mrtuxx/socialpwned socialpwned.py --credentials credentials.json --instagram --target-ig username --linkedin --target-in username --twitter --target-tw username --all-tw --pwndb --ghunt --dehashed
Die Verwendung von SocialPwned zum Angriff auf Ziele ohne vorherige gegenseitige Zustimmung ist illegal. Darüber hinaus werden verschiedene Module verwendet, die gegen die Regeln von LinkedIn und Instagram verstoßen; daher werden Sie vorübergehend oder dauerhaft gesperrt.
Es liegt in der Verantwortung des Endbenutzers, SocialPwned zu verwenden. Die Entwickler übernehmen keine Verantwortung und haften nicht für Missbrauch oder verursachte Schäden.