Skip to content

How to: New Status

Stephen Parkinson edited this page Apr 18, 2018 · 16 revisions

How to add a new status to the seclab bot

  1. In sec-lab-bot-py add BANNER_NEW STATUS with other banners
  2. Use same formatting of FIGLET.renderText to add what the status will display on the bot
  3. In while loop (currently line 206) add a check for specific key press using the ch variable
  4. Create status using format:
if ch == ord(KEY):
    reqtype = NEW STATUS
    success = ssl_request(reqtype)
    if success:
        ncurses_write(win, BANNER NAME)
  1. Add FLAG_NEW STATUS_REQ = 0xBYTE
  2. In the ssl_request function add your new reqtype to the list of status
  3. In make_request function add elif for your reqtype
Clone this wiki locally