Al-Azif/ps4-exploit-host

Changing HTTP_Port results in blank page ----> common.js:1 Uncaught DOMException: Failed to execute 'replace' on 'Location': 'http://192.168.1.10:8080:8080/cache/theme/index.html' is not a valid URL.

YouEbr opened this issue · 3 comments

[ X] By putting an X in this box I agree I have read the above. If my issue is in regards something listed above (or I did not check this box) I agree to have my issue closed without comment. (LEAVE THIS LINE IN YOUR ISSUE)

Hey,
When I change the HTTP_Port from 80 to any other value (8080, 880, etc), the page loads up but does not show any menu/category. By reverting back the HTTP_Port to 80, page loads fine. This behavior is seen on latest code. I attached an snapshot to clarify on what I mean.
HTTP_PORT

I enabled "Debug" to further investigate the issue. The logs are different between using port 80 and 8080. Snapshot attached.

image

One new fresh test shows that couple of calls are missing when http port is set to 8080.
Short version: Following lines are missing when port is set to 8080
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:47] "GET /themes/Default/images/0.png HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:48] "GET /cache/theme/index.html HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:49] "GET /api/menu HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:50] "GET /api/news HTTP/1.1" 200 -

Long Version

when HTTP PORT is set to 80

Exploit Host v0.4.6 by Al Azif #

FakeDns parsed 22 rules
DNS server thread is running...
HTTP server thread is running...
Servers are running
Your HTTP IP is 192.168.1.10
Your DNS IP is 192.168.1.10

192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:46] "GET / HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:46] "GET /themes/Default/promise-polyfill.min.js HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:46] "GET /themes/Default/bootstrap.bundle.min.js HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:46] "GET /themes/Default/bootstrap.min.css HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:46] "GET /themes/Default/jquery-3.3.1.min.js HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:46] "GET /themes/Default/default.css HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:46] "GET /themes/Default/common.js HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:47] "GET /blank.html HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:47] "GET /themes/Default/default.js HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:47] "GET /themes/Default/images/0.png HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:48] "GET /cache/theme/index.html HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:49] "GET /favicon.ico HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:49] "GET /api/menu HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10 - [09/Jul/2020 09:48:50] "GET /api/news HTTP/1.1" 200 -

When HTTP PORT is set to 8080

Exploit Host v0.4.6 by Al Azif
WARNING: HTTP is not port 80, User's Manual method will not work

FakeDns parsed 22 rules
DNS server thread is running...
HTTP server thread is running...
Servers are running
Your HTTP IP is 192.168.1.10 on port 8080
Your DNS IP is 192.168.1.10

192.168.1.10 - 192.168.1.10:8080 - [09/Jul/2020 09:47:03] "GET / HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10:8080 - [09/Jul/2020 09:47:05] "GET /themes/Default/bootstrap.min.css HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10:8080 - [09/Jul/2020 09:47:05] "GET /themes/Default/bootstrap.bundle.min.js HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10:8080 - [09/Jul/2020 09:47:05] "GET /themes/Default/jquery-3.3.1.min.js HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10:8080 - [09/Jul/2020 09:47:05] "GET /themes/Default/default.css HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10:8080 - [09/Jul/2020 09:47:05] "GET /themes/Default/common.js HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10:8080 - [09/Jul/2020 09:47:05] "GET /themes/Default/promise-polyfill.min.js HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10:8080 - [09/Jul/2020 09:47:08] "GET /blank.html HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10:8080 - [09/Jul/2020 09:47:08] "GET /themes/Default/default.js HTTP/1.1" 200 -
192.168.1.10 - 192.168.1.10:8080 - [09/Jul/2020 09:47:09] "GET /favicon.ico HTTP/1.1" 200 -

Further troubleshooting pointed to an exception. Check out the full log attached.

Uncaught DOMException: Failed to execute 'replace' on 'Location': 'http://192.168.1.10:8080:8080/cache/theme/index.html'

Exception.log