

e EXTERNAL_SCRIPTS=hubot-pugme,hubot-help \ You can quickly spin up a docker image with: docker run -it -e ROCKETCHAT_URL=: \ We have a couple of ways for you to get up and started with the Rocket.Chat adapter. Getting your bot connected to Rocket.Chat You can easily extend these scripts for your custom application. We already have many scripts that add webhook events and access GitHub/GitLab APIs. Make sure you visit the project before starting. There are also many different marketplace plugins for Rocket.Chat to make the chatrooms/channels a fun and engaging place to be.If you want to integrate Rocket.Chat with GitHub or GitLab. It also helps make the team feel more engaged where staff and ask each other questions or even challenges.

#bot.send_message('starting bot.', channel_id='general')īot.add_dm_handler(, printhelp)īot.add_dm_handler(, greet)īot.add_dm_handler(, rdns)īot.add_dm_handler(, shodan_ip)īot.add_dm_handler(, safe2browse)īot.add_dm_handler(, urlhaus_check)īot.add_dm_handler(, dmarc_check)īot.add_dm_handler(, getscreenshot)ĬhatOps bots can be used to automate repeatative tasks, it permits senior team members to observe the progress of junior team members (aka shadowing). Here is a snippet of our main bot-code, hopefully it will help you to consider developing your own bots:įrom rocketchat_API.rocketchat import RocketChatīot.send_message('My commands are:\nrdns - perform reverse dns\nwhois - perform whois\nshodan_ip - retrieve shodan info on a single ip\nsafe2browse - check url with Google\'s safe to browse api\nurlhaus - check domain/url on URLhaus\ndmarc - print a domains _dmarc DNS record\nss - screenshot a url', channel_id)īot.send_message('hello + user, channel_id)īot.send_message(intel.reverse_dns(msg), channel_id)īot.send_message(intel.shodan_address(msg), channel_id)īot.send_message(intel.safebrowsing(msg), channel_id)ĭef urlhaus_check(msg, user, channel_id):īot.send_message(intel.check_urlhaus_url(msg), channel_id)īot.send_message(intel.check_dmarc(msg), channel_id)ĭef getscreenshot(msg, user, channel_id):īot.send_message(intel.screenshot_web(msg), channel_id)īot = RocketChatBot(botname, botpassword, server_url) Python is an easy an adpatable programming language to use, and we encourage all of our consultants to attempt learning this specific lanuage for the purposes of scripting in the information security sector.
