Skip to content

Instantly share code, notes, and snippets.

@alistar79
Last active March 3, 2023 02:56
Show Gist options
  • Save alistar79/785b422ab5de846b27e1770550526bce to your computer and use it in GitHub Desktop.
Save alistar79/785b422ab5de846b27e1770550526bce to your computer and use it in GitHub Desktop.
Make telegram, twitter and discord pwnagotchi plugins send last_session summary in auto mode too

Edit /usr/local/bin/pwnagotchi After line 50: agent.mode = 'auto'

Add:

    agent.last_session.parse(agent.view(), args.skip_session)
    if grid.is_connected():
        plugins.on('internet_available', agent)
    time.sleep(5)

Before: agent.start() it will add a delay to start session due to that sleep and the time it takes to parse logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment