Skip to content

Commit

Permalink
Reformatted results, about, footer
Browse files Browse the repository at this point in the history
Added logging functionality (incomplete)
  • Loading branch information
wh0th3h3llam1 committed Apr 17, 2021
1 parent 53701d1 commit bc4c9aa
Show file tree
Hide file tree
Showing 288 changed files with 740 additions and 59,299 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@

bughunt3r/cred.py
CE129 - FINAL REPORT.docx
CE129_Final_Report.odt
CE129 - FINAL REPORT.pdf
*.docx
*.pdf
*.pptx
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"python.linting.pylintEnabled": true,
"python.linting.enabled": false,
"python.pythonPath": "C:\\Users\\Aarsh\\Anaconda3\\python.exe"
"python.linting.enabled": false
}
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,29 @@ A Recon framework which uses other open-source tools for Reconnaissance
<!-- Please Issue a Pull Request or -->


### Subdomain Enumeration

[amass](https://github.com/OWASP/Amass)

[SubBrute](https://github.com/TheRook/subbrute)

[Knock](https://github.com/guelfoweb/knock)

[DNSRecon](https://tools.kali.org/information-gathering/dnsrecon)

[Sublist3r](https://github.com/aboul3la/Sublist3r)


### Port Scanning

[nmap](https://nmap.org)

[masscan](https://github.com/robertdavidgraham/masscan)

[dnmasscan](https://github.com/rastating/dnmasscan)



## Contributors

wh0am1
121 changes: 72 additions & 49 deletions bughunt3r/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,46 +33,46 @@
# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',

# user apps
'engine',
'sublist3r',

'markdown',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',

# user apps
'engine',
'sublist3r',

'markdown',
]

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'bughunt3r.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

WSGI_APPLICATION = 'bughunt3r.wsgi.application'
Expand All @@ -82,29 +82,29 @@
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}


# Password validation
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]


Expand Down Expand Up @@ -136,4 +136,27 @@
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
MEDIA_URL = "/media/"

EYEWITNESS_URL = str(Path.home()) + "\\AppData\\Roaming\\"
EYEWITNESS_URL = str(Path.home()) + "\\AppData\\Roaming\\"

LOGGING = {
"loggers" = {
'version': 1,
'django': {
'handlers': {'file'},
'level': 'DEBUG'
}
},
"handlers" = {
'file': {
'level': 'DEBUG',
'class': 'logging.fileHandler',
'filename': './logs/debug.log',
}
},
"formatters" = {
'simpleRe': {
'format': '[{levelname}] {message}',
'style': '{',
},
},
}
Binary file modified engine/__pycache__/urls.cpython-38.pyc
Binary file not shown.
Binary file modified engine/__pycache__/views.cpython-38.pyc
Binary file not shown.
11 changes: 1 addition & 10 deletions engine/static/auth/config.json
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
{
"bughunt3r": {
"config": {
"user_name": "",
"password": "",
"algorithm": "",
"created": ""
}
}
}
{"bughunt3r": {"config": {"user_name": "root", "password": "e454ae1cc3ba6795d4423be232a1112845d954f3392df03818999573b5076c63", "algorithm": "sha256", "recovery_email": "", "created_on": "09/04/2021 14:43:07", "updated_on": "09/04/2021 14:43:07"}}}
2 changes: 1 addition & 1 deletion engine/static/css/styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
main {
min-height: 555px !important;
min-height: 650px !important;
}

.center {
Expand Down
Binary file added engine/static/images/close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added engine/static/images/female_avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added engine/static/images/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added engine/static/images/male_avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added engine/static/images/male_avatar_brown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added engine/static/images/male_avatar_glasses.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added engine/static/images/next.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added engine/static/images/prev.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 16 additions & 3 deletions engine/static/js/cve_search.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
function cveSearch(id) {
// var x = '#' + id + "_cpe"
var info = $('#' + id).attr('data-info')
var url = $('#' + id).attr('data-url')
var info = $('#' + id).attr('data-info');

// cpe:/<part>:<vendor>:<product>:<version>:<update>:<edition>:<language>

var cve_info = info.split(":");

var part = cve_info[1];
var vendor = cve_info[2];
var product = cve_info[3];
var version = cve_info[4];
var update = cve_info[5];
var edition = cve_info[6];
var language = cve_info[7];

var url = $('#' + id).attr('data-url');
console.log(url);
// console.log(url + "/" + info);
document.location.href = url
// document.location.href = url
}
2 changes: 1 addition & 1 deletion engine/static/js/export_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function exportFile() {
showProgress: 'bottom',
showIcon: "download",
class: c,
classProgress: "teal",
classProgress: "orange",
displayTime: 3500,
});
var url = $('#export').attr('data-url')
Expand Down
11 changes: 11 additions & 0 deletions engine/static/js/on_click_link.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
function github() {
document.location.href = "https://github.com/wh0th3h3llam1"
}

function mail() {
window.location.href = "mailto:wh0th3h3llam1@pm.me"
}

function twitter() {
document.location.href = "https://twitter.com/__wh0am1__"
}
24 changes: 16 additions & 8 deletions engine/static/js/scan_started.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function validatePortRange() {
console.log("Empty Port Range");
$('body').toast({
class: 'error',
message: `Please Enter Port Range`
message: `Please Enter Port Number or Port Range`
});
$('#port_field').addClass('error');
return false
Expand All @@ -54,32 +54,40 @@ function validatePortRange() {
var p = port_range.split("-")
p1 = p[0];
p2 = p[1];
if (validateNum(p1, 1, 65535) && validateNum(p2, 1, 65535) && p1 < p2) {
// $('body').toast({
// class: 'success',
// message: `Port Range Valid`
// });
if (validateNum(p1, 1, 65535) && validateNum(p2, 1, 65535)) {
if (!(p1 < p2)) {
$('body').toast({
class: 'error',
title: `Port Range Invalid`,
message: `It should be in a format x-y and x must be less than y`
});
return false

}
$('#port_field').removeClass('error');
return true
}

else {
$('body').toast({
class: 'error',
message: `Port Range Invalid`
title: `Port Range Invalid`,
message: `Port Range must be between 1 and 65535`
});
$('#port_field').addClass('error');
return false
}
}

// Port Number
else {
console.log("In Else else");
var x = validateNum(port_range, 1, 65535);
if (!x) {
$('body').toast({
class: 'error',
message: `Port Range Invalid`
title: `Port Number Invalid`,
message: `Port Number must be between 1 and 65535`
});
$('#port_field').addClass('error');
return false
Expand Down
45 changes: 45 additions & 0 deletions engine/static/js/setup_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,49 @@ function setupAuth() {
]
});
}
}

function setupAuthentication(event) {

$('.ui.green.button').addClass('double loading');

var user_name = $('#user_name').val();
var passwd = $('#passwd').val();

if (validateUserName(user_name) && validatePassword(passwd)) {
// var link = $('#setup').attr('data-url')
// console.log(link);
// document.location.href = link;
}
else {
event.preventDefault();
}
}

function validateUserName(user_name) {
if(user_name === "")
{
console.log("Empty");
$('body').toast({
class: 'error',
message: `Please enter User Name`
});
$('.ui.green.button').removeClass('double loading');
return false
}
return true
}

function validatePassword(passwd) {
if(passwd === "")
{
console.log("Empty");
$('body').toast({
class: 'error',
message: `Please enter Password`
});
$('.ui.green.button').removeClass('double loading');
return false
}
return true
}
Loading

0 comments on commit bc4c9aa

Please sign in to comment.