Closed tyff9527 closed 4 months ago
$ curl https://hostloc.com/?mod=rss
<html><body><script type="text/javascript" src="/aes.min.js" ></script><noscript><h1 style="text-align:center;color:red;"><strong>Please turn JavaScript on and reload the page.</strong></h1></noscript><script>function toNumbers(d){var e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("7630ff4fe2ff985dd21f9f6491f8ac8c"),b=toNumbers("113e6887d0e7b983288025684c923a5d"),c=toNumbers("0c00fd9f8015291c3a7ec7923b2f0e9c");document.cookie="cnsL7="+toHex(slowAES.decrypt(c,2,a,b))+"; path=/";location.href="https://hostloc.com/?mod=rss&d=1";</script></body></html>
The RSS feed is behind a WAF so it is only a valid RSS after passing the browser integrity check. An RSS reader is not necessarily a browser and my opinion on these websites that put their RSS feeds behind a WAF is consistent:
Describe the bug
A clear and concise description of what the bug is: I encountered an issue while trying to subscribe to an RSS feed using the RSS-to-Telegram-Bot. Despite confirming that the RSS feed is valid, the subscription fails with an error message indicating that the RSS feed is invalid.
To Reproduce
Steps to reproduce the behavior:
/sub https://hostloc.com/?mod=rss
Screenshots
Feed URL
https://hostloc.com/?mod=rss
Expected behavior
A clear and concise description of what you expected to happen: The bot should successfully subscribe to the RSS feed if it is valid.
Important log