Skip to content

Commit

Permalink
h8mail removed from web
Browse files Browse the repository at this point in the history
  • Loading branch information
six2dez committed Jun 9, 2023
1 parent 492b2f9 commit 1a4d3eb
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 300 deletions.
2 changes: 0 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,6 @@ else
fi
fi

#eval h8mail -g $DEBUG_STD

## Stripping all Go binaries
eval strip -s "$HOME"/go/bin/* $DEBUG_STD

Expand Down
25 changes: 0 additions & 25 deletions reconftw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,31 +228,6 @@ function emails(){
cd "$dir" || { echo "Failed to cd to $dir in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
[ -s ".tmp/infoga.txt" ] && cat .tmp/infoga.txt | cut -d " " -f3 | grep -v "-" | anew -q osint/emails.txt

# COMMENTED THEHARVESTER, H8MAIL AND PWNDB AS THEY'RE NOT WORKING AS EXPECTED
# cd "$tools/theHarvester" || { echo "Failed to cd directory in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
# python3 theHarvester.py -d $domain -b all -f $dir/.tmp/harvester.json 2>>"$LOGFILE" >/dev/null
# cd "$dir" || { echo "Failed to cd to $dir in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
# if [ -s ".tmp/harvester.json" ]; then
# cat .tmp/harvester.json | jq -r 'try .emails[]' 2>/dev/null | anew -q osint/emails.txt
# cat .tmp/harvester.json | jq -r 'try .linkedin_people[]' 2>/dev/null | anew -q osint/employees.txt
# cat .tmp/harvester.json | jq -r 'try .linkedin_links[]' 2>/dev/null | anew -q osint/linkedin.txt
# fi
# h8mail -t $domain -q domain --loose -c $tools/h8mail_config.ini -j .tmp/h8_results.json 2>>"$LOGFILE" >/dev/null
# [ -s ".tmp/h8_results.json" ] && cat .tmp/h8_results.json | jq -r '.targets[0] | .data[] | .[]' | awk '{print $12}' | anew -q osint/h8mail.txt
#
# PWNDB_STATUS=$(timeout 30s curl -Is --socks5-hostname localhost:9050 http://pwndb2am4tzkvold.onion | grep HTTP | cut -d ' ' -f2)
#
# if [ "$PWNDB_STATUS" = 200 ]; then
# cd "$tools/pwndb" || { echo "Failed to cd directory in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
# python3 pwndb.py --target "@${domain}" | sed '/^[-]/d' | anew -q $dir/osint/passwords.txt
# cd "$dir" || { echo "Failed to cd directory in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
# [ -s "osint/passwords.txt" ] && sed -r -i "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" osint/passwords.txt
# [ -s "osint/passwords.txt" ] && sed -i '1,2d' osint/passwords.txt
# else
# text="${yellow}\n pwndb is currently down :(\n\n Check xjypo5vzgmo7jca6b322dnqbsdnp3amd24ybx26x5nxbusccjkm4pwid.onion${reset}\n"
# printf "${text}" && printf "${text}" | $NOTIFY
# fi

end_func "Results are saved in $domain/osint/emails.txt" ${FUNCNAME[0]}
else
if [ "$EMAILS" = false ] || [ "$OSINT" = false ]; then
Expand Down
51 changes: 1 addition & 50 deletions web/apikeys/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,53 +201,4 @@ def theHarvesterConfig(name, key=None, get=None):
if result == None:
return ''
else:
return result

def h8mailConfig(name, key=None, get=None):
file = str(Path.home())+"/Tools/h8mail_config.ini"

lines = open(file, "r").readlines()
sub=""

if key != None:
for line in lines:
line = line.replace("\n", "")
if name in line and key != "":
sub = line

very = line.split("=")[1].replace(" ", "")

if key != very:
while line[0] == ";":
line = line.replace(";", "", 1)

while line[0] == " ":
line = line.replace(" ", "", 1)


final = line.split("=")[0]+"= "+key
replace = Path(file)
replace.write_text(replace.read_text().replace(sub, final, 1))
break

elif name in line and key == "":
final = ";"+name+" = "
sub = line


replace = Path(file)
replace.write_text(replace.read_text().replace(sub, final, 1))
break
elif get == True:
key = ""
for line in lines:

line = line.replace("\n", "")
if name in line:
sub = line

key = line.split("=")[1].replace(" ", "")

break

return key
return result
42 changes: 1 addition & 41 deletions web/apikeys/views.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from editprofile.imgUser import imgUser
from apikeys.config import amassConfig, ReconConfig, GithubConfig, h8mailConfig
#from apikeys.config import amassConfig, ReconConfig, theHarvesterConfig, GithubConfig, h8mailConfig
from apikeys.config import amassConfig, ReconConfig, GithubConfig
# Create your views here.

otherNames = {'passivedns': '360PassiveDNS', 'digicert': 'CertCentral', 'psbdmp':'Pastebin', 'rikiq':'PassiveTotal', 'quake360':'quake', 'cisco':'Umbrella', 'leaklookup_priv':'leak-lookup_priv', 'leaklookup_pub':'leak-lookup_pub'}
Expand Down Expand Up @@ -53,17 +52,6 @@ def conf(request):
# if name != "spyse":
# theHarvesterConfig(name, key=key)

elif keys["type"][0] == "h8mail":
del keys["type"]

for key in keys:
name = key
key = key=keys[key][0]
if name in otherNames:
name = otherNames[name]

h8mailConfig(name, key=key)

@login_required(login_url='/login/')
def index(request):

Expand Down Expand Up @@ -148,34 +136,6 @@ def index(request):
'token_5_value': GithubConfig('5', get=True),
'token_6_value': GithubConfig('6', get=True),

# 'binaryedge_value': theHarvesterConfig("binaryedge", get=True),
# 'bing_value': theHarvesterConfig("bing", get=True),
# 'censys2_value': theHarvesterConfig("censys", get=True),
# 'fullhunt2_value': theHarvesterConfig("fullhunt", get=True),
# 'github2_value': theHarvesterConfig("github", get=True),
# 'hunter2_value': theHarvesterConfig("hunter", get=True),
# 'intelx2_value': theHarvesterConfig("intelx", get=True),
# 'pentesttools2_value': theHarvesterConfig("pentestTools", get=True),
# 'chaos2_value': theHarvesterConfig("chaos", get=True),
# 'rocketreach_value': theHarvesterConfig("rocketreach", get=True),
# 'securitytrails2_value': theHarvesterConfig("securityTrails", get=True),
# 'shodan3_value': theHarvesterConfig("shodan", get=True),
# 'zoomeye2_value': theHarvesterConfig("zoomeye", get=True),

'hunter3_value': h8mailConfig("hunter", get=True),
'snusbase_value': h8mailConfig("snusbase", get=True),
'emailrep_value': h8mailConfig("emailrep", get=True),
'intelx3_value': h8mailConfig("intelx", get=True),
'hibp_value': h8mailConfig("hibp", get=True),
'leaklookup_pub_value': h8mailConfig("leak-lookup_pub", get=True),
'leaklookup_priv_value': h8mailConfig("leak-lookup_priv", get=True),
'weleakinfo_priv_value': h8mailConfig("weleakinfo_priv", get=True),
'weleakinfo_pub_value': h8mailConfig("weleakinfo_pub", get=True),
'dehashed_email_value': h8mailConfig("dehashed_email", get=True),
'dehashed_key_value': h8mailConfig("dehashed_key", get=True),
'breachdirectory_user_value': h8mailConfig("breachdirectory_user", get=True),
'breachdirectory_pass_value': h8mailConfig("breachdirectory_pass", get=True),

"imagePath": imagePath,
"apikeys_settings": "API Keys Settings",
}
Expand Down
1 change: 0 additions & 1 deletion web/scans/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('emails', models.TextField()),
('users', models.TextField()),
('h8mail', models.TextField()),
('passwords', models.TextField()),
('employees', models.TextField()),
('linkedin', models.TextField()),
Expand Down
1 change: 0 additions & 1 deletion web/scans/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ def __str__(self):
class OSINTUsersInfo(models.Model):
emails = models.TextField()
users = models.TextField()
h8mail = models.TextField()
passwords = models.TextField()
employees = models.TextField()
linkedin = models.TextField()
Expand Down
10 changes: 1 addition & 9 deletions web/scans/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,13 +1316,6 @@ def osintusersinfo_f2db(project_id):
else:
users = 'N/A'

if 'h8mail.txt' in ld:
with open(f"{osintusers_path}/h8mail.txt") as f:
h8mail = f.read()
f.close()
else:
h8mail = 'N/A'

if 'passwords.txt' in ld:
with open(f"{osintusers_path}/passwords.txt") as f:
passwords = f.read()
Expand All @@ -1345,8 +1338,7 @@ def osintusersinfo_f2db(project_id):
linkedin = 'N/A'


osintusers_save.create(emails=emails, users=users, h8mail=h8mail,
passwords=passwords, employees=employees,
osintusers_save.create(emails=emails, users=users, passwords=passwords, employees=employees,
linkedin=linkedin, project_id=project_id)


Expand Down
171 changes: 0 additions & 171 deletions web/templates/apikeys_settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -1742,177 +1742,6 @@ <h1>THE HARVESTER</h1>
</section>
</div>
</div>

<div class="container">
<div class="row">
<section class="fieldset">
<div class="container">
<div class="row">
<div class="col-sm"></div>
<div class="col-sm-3 text-center">
<h1>H8MAIL TOOL</h1>
</div>
<div class="col-sm"></div>
</div>
</div>

<form class="form-horizontal" action="" method="post">
<input type="hidden" name="type" value="h8mail" />
<div class="container">
<div class="row">
<div class="col-sm">
<div class="form-group row">
<label class="col-sm-4 col-form-label"><i
class="icon-info-apikey bx-sm bx bxs-info-circle"></i><span
class="api-align-input">HUNTER</span></label>
<div class="col-sm-6 mx-4">
<input type="XXXXXX" class="form-control" placeholder="XXXXXXX" value="{{ hunter3_value }}"
name="hunter" />
</div>
</div>

<div class="form-group row">
<label class="col-sm-4 col-form-label"><i
class="icon-info-apikey bx-sm bx bxs-info-circle"></i><span
class="api-align-input">SNUSBASE</span></label>
<div class="col-sm-6 mx-4">
<input type="XXXXXX" class="form-control" placeholder="XXXXXXX" value="{{ snusbase_value }}"
name="snusbase" />
</div>
</div>

<div class="form-group row">
<label class="col-sm-4 col-form-label"><i
class="icon-info-apikey bx-sm bx bxs-info-circle"></i><span
class="api-align-input">EMAILREP</span></label>
<div class="col-sm-6 mx-4">
<input type="XXXXXX" class="form-control" placeholder="XXXXXXX" value="{{ emailrep_value }}"
name="emailrep" />
</div>
</div>

<div class="form-group row">
<label class="col-sm-4 col-form-label"><i
class="icon-info-apikey bx-sm bx bxs-info-circle"></i><span
class="api-align-input">INTELX</span></label>
<div class="col-sm-6 mx-4">
<input type="XXXXXX" class="form-control" placeholder="XXXXXXX" value="{{ intelx3_value }}"
name="intelx" />
</div>
</div>

<div class="form-group row">
<label class="col-sm-4 col-form-label"><i
class="icon-info-apikey bx-sm bx bxs-info-circle"></i><span
class="api-align-input">HIBP</span></label>
<div class="col-sm-6 mx-4">
<input type="XXXXXX" class="form-control" placeholder="XXXXXXX" value="{{ hibp_value }}"
name="hibp" />
</div>
</div>

<div class="form-group row">
<label class="col-sm-4 col-form-label"><i
class="icon-info-apikey bx-sm bx bxs-info-circle"></i><span
class="api-align-input">LEAK-LOOKUP PUB</span></label>
<div class="col-sm-6 mx-4">
<input type="XXXXXX" class="form-control" placeholder="XXXXXXX"
value="{{ leaklookup_pub_value }}" name="leaklookup_pub" />
</div>
</div>

<div class="form-group row">
<label class="col-sm-4 col-form-label"><i
class="icon-info-apikey bx-sm bx bxs-info-circle"></i><span
class="api-align-input">LEAK-LOOKUP PRIV</span></label>
<div class="col-sm-6 mx-4">
<input type="XXXXXX" class="form-control" placeholder="XXXXXXX"
value="{{ leaklookup_priv_value }}" name="leaklookup_priv" />
</div>
</div>
</div>
<div class="col-sm">
<div class="form-group row">
<label class="col-sm-5 col-form-label"><i
class="icon-info-apikey bx-sm bx bxs-info-circle"></i><span
class="api-align-input">WELEAKINFO PRIV</span></label>
<div class="col-sm-6">
<input type="XXXXXX" class="form-control" placeholder="XXXXXXX"
value="{{ weleakinfo_priv_value }}" name="weleakinfo_priv" />
</div>
</div>

<div class="form-group row">
<label class="col-sm-5 col-form-label"><i
class="icon-info-apikey bx-sm bx bxs-info-circle"></i><span
class="api-align-input">WELEAKINFO PUB</span></label>
<div class="col-sm-6">
<input type="XXXXXX" class="form-control" placeholder="XXXXXXX"
value="{{ weleakinfo_pub_value }}" name="weleakinfo_pub" />
</div>
</div>

<div class="form-group row">
<label class="col-sm-5 col-form-label"><i
class="icon-info-apikey bx-sm bx bxs-info-circle"></i><span class="api-align-input">DEHASHED
EMAIL</span></label>
<div class="col-sm-6">
<input type="XXXXXX" class="form-control" placeholder="XXXXXXX"
value="{{ dehashed_email_value }}" name="dehashed_email" />
</div>
</div>

<div class="form-group row">
<label class="col-sm-5 col-form-label"><i
class="icon-info-apikey bx-sm bx bxs-info-circle"></i><span class="api-align-input">DEHASHED
KEY</span></label>
<div class="col-sm-6">
<input type="XXXXXX" class="form-control" placeholder="XXXXXXX"
value="{{ dehashed_key_value }}" name="dehashed_key" />
</div>
</div>

<div class="form-group row">
<label class="col-sm-5 col-form-label"><i
class="icon-info-apikey bx-sm bx bxs-info-circle"></i><span
class="api-align-input">BREACHDIRECTORY USER</span></label>
<div class="col-sm-6">
<input type="XXXXXX" class="form-control" placeholder="XXXXXXX"
value="{{ breachdirectory_user_value }}" name="breachdirectory_user" />
</div>
</div>

<div class="form-group row">
<label class="col-sm-5 col-form-label"><i
class="icon-info-apikey bx-sm bx bxs-info-circle"></i><span
class="api-align-input">BREACHDIRECTORY PASS</span></label>
<div class="col-sm-6">
<input type="XXXXXX" class="form-control" placeholder="XXXXXXX"
value="{{ breachdirectory_pass_value }}" name="breachdirectory_pass" />
</div>
</div>
</div>

<div class="container text-center">
<div class="row">
<div class="col-sm-3"></div>
<div class="col-sm">
<!-- <input class="reconftw-fileupload form-control" type="file" accept="images/*" id="formFile" name="UserPicture">
<button type="reset" class="btn btn-default btn-edit-reconftw">SUBMIT</button> -->
<button type="submit" class="btn btn-success btn-edit-reconftw">
SUBMIT
</button>
</div>
<div class="col-sm-3"></div>
</div>
</div>
</div>
</div>
{% csrf_token %}
</form>
</section>
</div>
</div>
</div>
</div>
<div class="col-sm"></div>
Expand Down

0 comments on commit 1a4d3eb

Please sign in to comment.