Closed Tarekzidan19 closed 2 years ago
Did you follow this setup?
Basically you need to get then token by following the guide above then add these lines to your ~/.bashrc
export STATUS_CHANNEL=CGXXXXXX
export SLACK_BOT_TOKEN=xoxb-xx
then source ~/.bashrc
to load that.
Finally, run python3 scripts/reload.py
to load those configs to your API server.
You can verify it by checking content of ~/.osmedeus/server.conf
file.
Let me know if you still have trouble.
I have followed the steps above but i can't do what you mention here :
Finally, run python3 scripts/reload.py to load those configs to your API server. You can verify it by checking content of ~/.osmedeus/server.conf file.
this files doesn't exist in the directory in scripts/ directory there is only reset.py and checking.py
and in the ~/.osmedeus/ there is the config.conf file only
Also i have some questions regarding the modules when i run it with the default mode ./osmedeus.py -t example.com = it didn't run the CORS , linkFinder modules also how can i edit the directory bruteforce module ?
... and in the ~/.osmedeus/ there is the config.conf file only
You might still use the legacy version completely delete those folder and clone the lastest again.
Also i have some questions regarding the modules when i run it with the default mode ./osmedeus.py -t example.com = it didn't run the CORS , linkFinder modules also how can i edit the directory bruteforce module ?
This module not really add in the main routine yet.I will be updating later.
You can change path of the wordlist here and run scripts/reload.py
to load that routine
How i can disable slack noti bro
@saddean it's disabled by default Slack notification will be enabled only if you pass the argument " --slack "
@Tarekzidan19
i run command ./osmedeus.py -t domain.com
, however , slack noti sending
is enable
[*] Sending done notification to slack
[-] Fail to send noti to slack
[*] Sending report notification to slack
Traceback (most recent call last):
File "./osmedeus.py", line 159, in <module>
main()
File "./osmedeus.py", line 155, in main
parsing_argument(args)
File "./osmedeus.py", line 58, in parsing_argument
single_target(options)
File "./osmedeus.py", line 66, in single_target
routine.routine_handle(options)
File "/home/vps/tool/Osmedeus/lib/mode/routine.py", line 28, in routine_handle
general.handle(options)
File "/home/vps/tool/Osmedeus/lib/mode/general.py", line 31, in handle
single_handle(options)
File "/home/vps/tool/Osmedeus/lib/mode/general.py", line 42, in single_handle
stoscan.StoScan(options)
File "/home/vps/tool/Osmedeus/modules/skeleton.py", line 17, in __init__
self.initial()
File "/home/vps/tool/Osmedeus/modules/skeleton.py", line 39, in initial
self.additional_routine()
File "/home/vps/tool/Osmedeus/modules/skeleton.py", line 120, in additional_routine
'report', self.options, output=slack_report)
File "/home/vps/tool/Osmedeus/lib/noti/slack_noti.py", line 53, in slack_notification
slack_file(options, output)
File "/home/vps/tool/Osmedeus/lib/noti/slack_noti.py", line 139, in slack_file
filetype='text'
File "/usr/local/lib/python3.6/dist-packages/slack/web/client.py", line 715, in files_upload
return self.api_call("files.upload", files={"file": file}, data=kwargs)
File "/usr/local/lib/python3.6/dist-packages/slack/web/base_client.py", line 154, in api_call
return self._event_loop.run_until_complete(future)
File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
return future.result()
File "/usr/local/lib/python3.6/dist-packages/slack/web/base_client.py", line 223, in _send
return SlackResponse(**{**data, **res}).validate()
File "/usr/local/lib/python3.6/dist-packages/slack/web/slack_response.py", line 174, in validate
raise e.SlackApiError(message=msg, response=self.data)
slack.errors.SlackApiError: The request to the Slack API failed.
The server responded with: {'ok': False, 'error': 'invalid_auth'}
^CError in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/popen_fork.py", line 28, in poll
pid, sts = os.waitpid(self.pid, flag)
Hi @j3ssie
I got problem when tried send notif to slack
[+] Clean old activities for razer.com:SubdomainScanning
[*] Sending status notification to slack
[-] Fail to send noti to slack
This is my Config :
# Osmedeus
export LOG_CHANNEL=CGXXXXXX
export STATUS_CHANNEL=CGXXXXXX export REPORT_CHANNEL=CGosmedeus
export STDS_CHANNEL=CGXXXXXXX export SLACK_BOT_TOKEN=xoxb-xxxx
export GITHUB_API_KEY=xxxxx
And i just followed your setup, after setup my .bashrc
then source ~/.bashrc
to load that.
Finally, run python3 scripts/reload.py
to load those configs to your API server.
wayc0de@DESKTOP-9C0TVKV:~/tools/Osmedeus$ python3 scripts/reload.py
----------------------------------------------------------------------
[RUN] Reload routine and config for server
----------------------------------------------------------------------
I can verify it by checking content of ~/.osmedeus/server.conf
file.
[Enviroments]
workspaces = /home/wayc0de/.osmedeus/workspaces
plugins_path = /home/wayc0de/tools/Osmedeus/plugins
go_path = /home/wayc0de/tools/Osmedeus/plugins/go
data_path = /home/wayc0de/tools/Osmedeus/data
alias_path = /home/wayc0de/tools/Osmedeus/lib/alias
github_api_key = xxxxxxx
healthcheck = None
[Slack]
local_name = JJ
slack_bot_token = xoxb-xxxxxxxx
log_channel = CGXXXXXX
log_name = logcmd
status_channel = CGXXXXXX
status_name = status
stds_channel = CGXXXXXXX
stds_name = stds
report_channel = CGosmedeus
report_name = report
verbose_report_channel = None
verbose_report_name = verbose-report
[Monitor]
backups = /home/wayc0de/.osmedeus/backups
monitors = /home/wayc0de/.osmedeus/monitors
monitor_level = final
slack_monitor_token = None
new_channel = None
new_name = None
missing_channel = None
missing_name = None
Maybe i wrong setup on report_channel
name?
Thank before :)
====================================
Solved : change channel from CGosmedeus
to osmedeus
same here. i've followed all steps here (https://j3ssie.github.io/Osmedeus/installation/token-setup/#setup-slack-notification-in-osmedeus). and my ~/.osmedeus/server.conf
it still doesn't change anything when i cat
dat file.
Hi,
I have the same issue trying to enable slack notifications.
"same here. i've followed all steps here (https://j3ssie.github.io/Osmedeus/installation/token-setup/#setup-slack-notification-in-osmedeus). and my ~/.osmedeus/server.conf it still doesn't change anything when i cat dat file." does apply completely to me as well.
OS: Ubuntu 18.04.3.
Any advice regards how can we fix / debug this?
Thanks!
root@PC192:/home/smartis/Scrivania/Osmedeus# ./osmedeus.py -t yahoo.com
Traceback (most recent call last):
File "./osmedeus.py", line 10, in
The issue is no longer exist due to the repo having been upgraded to Osmedeus Next Generation v4.0
I have installed the tool using docker and it worked great
i have edited the slack settings ~/.osmedeus/config.conf
[Slack] local_name = JJ bot_token = xoxp-xxx... log_channel = None log_name = logcmd status_channel = None status_name = osme1 stds_channel = None stds_name = stds report_channel = None report_name = report verbose_report_channel = None verbose_report_name = verbose-report
then i restart the container using : docker restart osmedeus
i run the tool with --slack option but i didn't receive an notification ?