Giter Site home page Giter Site logo

Comments (2)

shizzgar avatar shizzgar commented on September 4, 2024

when I try to run notify after nuclei scan it does not send all notify prompts to telegram randomly sends some of them and does not send others then I have to manually use notify to send those scan results. I have think there is some integration problem with telegram

Try -bulk option

from notify.

moein9 avatar moein9 commented on September 4, 2024

Hi,

the issue in my case which is with telegram is like that,

The error will happen whenever there is an underscore(_) in the string.

please take a look at my terminal result


root@my-unbuntu:~# notify -version

             __  _ ___    
  ___  ___  / /_(_) _/_ __
 / _ \/ _ \/ __/ / _/ // /
/_//_/\___/\__/_/_/ \_, / v1.0.5
                   /___/  

                projectdiscovery.io

[INF] Current Version: 1.0.5

root@my-unbuntu:~# echo 'rr_r'|notify

             __  _ ___    
  ___  ___  / /_(_) _/_ __
 / _ \/ _ \/ __/ / _/ // /
/_//_/\___/\__/_/_/ \_, / v1.0.5
                   /___/  

                projectdiscovery.io

[INF] Current notify version 1.0.5 (latest)
Using default provider config: /root/.config/notify/provider-config.yaml
rr_r
[ERR] failed to send telegram notification for id: tel : Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 2

root@my-unbuntu:~# echo 'rr_r'|notify -bulk

             __  _ ___    
  ___  ___  / /_(_) _/_ __
 / _ \/ _ \/ __/ / _/ // /
/_//_/\___/\__/_/_/ \_, / v1.0.5
                   /___/  

                projectdiscovery.io

[INF] Current notify version 1.0.5 (latest)
Using default provider config: /root/.config/notify/provider-config.yaml
rr_r
[ERR] failed to send telegram notification for id: tel : Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 2

root@my-unbuntu:~# echo 'rr\_r'|notify -bulk

             __  _ ___    
  ___  ___  / /_(_) _/_ __
 / _ \/ _ \/ __/ / _/ // /
/_//_/\___/\__/_/_/ \_, / v1.0.5
                   /___/  

                projectdiscovery.io

[INF] Current notify version 1.0.5 (latest)
Using default provider config: /root/.config/notify/provider-config.yaml
rr\_r

the last one sent it successfully without errors because I escaped the underscore manually, the result that returned in the telegram was this rr_r, so it means it works well.

I'm not a GOLANG expert but I think implementing
something like this may fix the issue

escapedMessage := strings.ReplaceAll(message, "_", "\\_")
msg := utils.FormatMessage(escapedMessage, utils.SelectFormat(CliFormat, pr.TelegramFormat), p.counter)

from notify.

Related Issues (20)

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.