GithubHelp home page GithubHelp logo

sudosammy / knary Goto Github PK

View Code? Open in Web Editor NEW
289.0 14.0 56.0 649 KB

A simple HTTP(S) and DNS Canary bot with Slack/Discord/MS Teams/Lark/Telegram & Pushover support

License: GNU General Public License v3.0

Go 97.12% Shell 2.25% Dockerfile 0.63%
pentesting penetration-testing canary security-tools offensive-security slackbot bugbounty ctf-tools discord-bot pushover-notifications

knary's People

Contributors

c-sto avatar dependabot[bot] avatar goku-kaioken avatar lukehealy avatar pimps avatar riramar avatar skim-milk avatar sudosammy avatar sudosammy-atlassian avatar vortexau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

knary's Issues

Feature Request: Support Adding Custom DNS Entries

Would be great if we could add custom DNS entries (and wildcard entries).

The would allow full use of the TLD domain, such as adding MX entries to point to external mail servers so that the domain could be use to receive incoming emails.

User agent parsing error - https://github.com/sudosammy/knary/blob/master/libknary/http.go#L162

When a user agent contains a request verb such as "Wget/1.15 (linux-gnu)"

We get an output that duplicates the UA as the query

Query: User-Agent: Wget/1.15 (linux-gnu)
User-Agent: Wget/1.15 (linux-gnu)

https://github.com/sudosammy/knary/blob/master/libknary/http.go#L162

I made a change of all request verbs to be appended with a space as a dirty work around -

+if stringContains(header, "OPTIONS ") ||

  •   			stringContains(header, "GET ") ||
    
  •   			stringContains(header, "POST ") ||
    
  •   			stringContains(header, "PUT ") ||
    
  •   			stringContains(header, "PATCH ") ||
    
  •   			stringContains(header, "DELETE ") {
    
  •   			query = header
    

Hope this helps , thanks for the tool

Daily checks for knary updates don't work

I dunno why yet, but knary doesn't seem to fire the cronjob as expected meaning there's no notification to users when updates are released. This could probably be done better than a cronjob anyway.

Discord Webhook

Can anyone confirm if the webhook for discord is working? I can get Pushover to work, so I know they whole thing is working, I've even checked with tcpdump that it actually is sending data to discordapp.com. Am I using the webhook right?

DISCORD_WEBHOOK=https://discordapp.com/api/webhooks/{webhook.id}/{webhook.token}

Haven't tried slack though since we ran out of app integration with our free slack account, but if pushover works, surely discord should work as well, right?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.