Skip to content

Commit

Permalink
Removed duplicate init_splunk. Updated config to default Splunk to OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben0xA committed May 10, 2021
1 parent b0d3599 commit eaeb401
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
4 changes: 2 additions & 2 deletions honeycreds.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ SMB_SLEEP = 5
HTTP_SLEEP = 5

[forwarders]
#Forwarders
SPLUNK = ON
#Forwarders - set to ON to enable.
SPLUNK = OFF
ELK = OFF #Coming Soon

[splunk]
Expand Down
13 changes: 0 additions & 13 deletions honeycreds.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,6 @@ def init_splunk():
except:
print('[-] Failed to get Splunk indexes! Check configuration settings.')

def init_splunk():
global config, splunk_service, splunk_index
if config.SPLUNK_TOKEN != None:
splunk_service = client.connect(host=config.SPLUNK_HOSTNAME, port=config.SPLUNK_PORT, splunkToken=config.SPLUNK_TOKEN)
else:
splunk_service = client.connect(host=config.SPLUNK_HOSTNAME, port=config.SPLUNK_PORT, username=config.SPLUNK_USERNAME, password=config.SPLUNK_PASSWORD)

#Get or create index
try:
splunk_index = splunk_service.indexes[config.SPLUNK_INDEX]
except:
splunk_index = splunk_service.indexes.create(config.SPLUNK_INDEX)

def banner():
oncolor = termcolor.GREEN
print(termcolor.YELLOW + termcolor.BOLD + ' .-=-=-=-. ' + termcolor.END)
Expand Down

0 comments on commit eaeb401

Please sign in to comment.