Comments (10)
Here's another one that thug doesn't follow.. These are both from live exploit kits so this is far from theoretical ;)
<script type="text/javascript">parent.location.href = "http://worldcruiseholiday.[IPUTTHISHERETODEFANGTHEURL]co.th/wind.html";</script>from thug.
That last one may be due to the fact that there is no content-type being returned:
"content-type": "",
Maybe that is what is fooling thug?
from thug.
Could you please confirm the issues are fixed?
from thug.
The 2nd issue still seems to be unresolved. The following link was not followed:
HTTP/1.1 200
Server: Apache
Content-Length: 176
Content-Type:
Last-Modified: Ïò, 29 ìàð 2013 15:25:23 GMT
Accept-Ranges: bytes
Server: nginx/1.2.6
Date: Fri, 29 Mar 2013 15:25:23 GMT
X-Powered-By: PHP/5.4.11
from thug.
first issue does appear to be resolved, thanks
from thug.
This sounds quite strange me. Are you seeing a real browser following the redirection? Didn't know location.href could be set to an anchor...
from thug.
I haven't been able to confirm with a real browser, so who knows.. this is part of a TDS in front of a mix of pharma spam and SweetOrange EKs though so... there's definitely malicious content on the other side of those links sometimes.
Here are some sample URLs to play with (potentially malicious so be careful of course):
hXXp://buggy-center.by/respect.html
hXXp://sajidmerchant.com/ordinary.html
hXXp://www.dieswaene.com/completely.html
hXXp://triconcompany.com/even.html
from thug.
I'm going to commit a patch which should solve all the cases. Could you please confirm it works for you too?
from thug.
this page was still treated as a dead-end: <!DOCTYPE HTML><html><head><script type="text/javascript">parent.location.href = "http://sotimex.com/leaf.html";</script></head><body></body></html>
from thug.
Seems like it works properly here
buffer@saiph ~/thug/src $ python thug.py -l testLocation.html
[2013-04-12 09:54:32] [HREF Redirection (document.location)] Content-Location: about:blank --> Location: http://sotimex.com/leaf.html
[2013-04-12 09:54:32] [window open redirection] about:blank -> http://sotimex.com/leaf.html
[2013-04-12 09:54:45] [HTTP] URL: http://sotimex.com/leaf.html (Status: 400, Referrer: None)
[2013-04-12 09:54:45] Saving log analysis at ../logs/6ec5279d4bbb1e36d39d31a7aee1b18b/20130412095430
from thug.
Related Issues (20)
- Timeout option not working properly HOT 8
- 'ascii' codec can't encode character u'\ufeff' HOT 1
- take a screenshot for the page analyzed [feature request] HOT 2
- Can this be installed on Flare-VM machines? Either with docker or in Cygwin? HOT 14
- Initial Update
- For latecomer: Do not use ThugAPI with python thread package HOT 2
- Static/Dynamic analysis of Form URLs HOT 2
- UnicodeDecodeError in MongoDB.py HOT 2
- Proposing a PR to fix a few small typos HOT 2
- ImportError: ..._STPyV8.cpython-38-x86_64-linux-gnu.so HOT 2
- Block parsing because Google Safe Browsing HOT 2
- TypeError: a bytes-like object is required, not 'str' HOT 2
- Failed building wheel for thug: No such file or directory: 'conf' HOT 5
- No module named '_STPyV8' HOT 1
- Dead link for STPyV8 installation HOT 1
- Sample: `1b61b16dd4b7f6203d742b47411ca679f1f5734ed01534a37a126263f84396c0` HOT 5
- Sample: `1e98af662c337468274d2a20e1f5eb66645c8fff55269ee09fa9ba6e0733ce98` HOT 6
- Dockerfile refactoring
- Docker build fails HOT 2
- setup.py missing in repo HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thug.