henkaku-webserver's People
Forkers
foodiemonster magicalyu s117 jeenerio supergordon x3sphiorx leochencipher coreorm carlanga dnasdw sneik26rus antronic fluffelchen cedricwaltercastrosonhenkaku-webserver's Issues
Payload not working
After setting everything up, the application creates the index.html, payload.js, offsets.txt and base_payload.bin files. When the .js script is executed, nothing happens on the vita. I looked into the code and it seems that "var m=64+payload[16/4]" is not executed because "payload" is not properly initialized. The code beyond that point is not executed at all.
I don't know why it works on the original page. :/
Any clue here?
Server works but does not detect system-wide express/request installs
Arch x86_64
nodejs 6.3.0-1
npm 3.10.3-1
[parker@e73 Nodejs]$ node HENkaku-webservice.js
module.js:442
throw err;
^
Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/parker/build/HENkaku-webserver/Nodejs/HENkaku-webservice.js:1:77)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
[parker@e73 Nodejs]$ sudo npm install -g express
[sudo] password for parker:
/usr/lib
└─┬ [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
└── [email protected]
[parker@e73 Nodejs]$ node HENkaku-webservice.js
module.js:442
throw err;
^
Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/parker/build/HENkaku-webserver/Nodejs/HENkaku-webservice.js:1:77)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
[parker@e73 Nodejs]$ npm install express
/home/parker/build/HENkaku-webserver/Nodejs
└─┬ [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
└── [email protected]
npm WARN enoent ENOENT: no such file or directory, open '/home/parker/build/HENkaku-webserver/Nodejs/package.json'
npm WARN Nodejs No description
npm WARN Nodejs No repository field.
npm WARN Nodejs No README data
npm WARN Nodejs No license field.
[parker@e73 Nodejs]$ node HENkaku-webservice.js
module.js:442
throw err;
^
Error: Cannot find module 'request'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/parker/build/HENkaku-webserver/Nodejs/HENkaku-webservice.js:3:15)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
[parker@e73 Nodejs]$ npm install request
/home/parker/build/HENkaku-webserver/Nodejs
└─┬ [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
npm WARN enoent ENOENT: no such file or directory, open '/home/parker/build/HENkaku-webserver/Nodejs/package.json'
npm WARN Nodejs No description
npm WARN Nodejs No repository field.
npm WARN Nodejs No README data
npm WARN Nodejs No license field.
Also since this listens on port 80 by default it has to be run with sudo (Not mentioned in the readme)
[parker@e73 Nodejs]$ node HENkaku-webservice.js
index.html not found, creating
payload.js not found, creating
Base payload not found, creating
events.js:160
throw er; // Unhandled 'error' event
^
Error: listen EACCES 0.0.0.0:80
at Object.exports._errnoException (util.js:1008:11)
at exports._exceptionWithHostPort (util.js:1031:20)
at Server._listen2 (net.js:1240:19)
at listen (net.js:1289:10)
at Server.listen (net.js:1385:5)
at EventEmitter.listen (/home/parker/build/HENkaku-webserver/Nodejs/node_modules/express/lib/application.js:617:24)
at Object.<anonymous> (/home/parker/build/HENkaku-webserver/Nodejs/HENkaku-webservice.js:366:18)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
[parker@e73 Nodejs]$ sudo node HENkaku-webservice.js
index.html not found, creating
payload.js not found, creating
Base payload not found, creating
Henkaku local service listening on http://:::80
Successfully created base payload
error: found is not defined
Hi
im tried to test this app, config the ip and change the port to 5000 (80 is own by lighttpd)
when try open in chrome linux, appears window with this message: error: found is not defined
in the vita, always send error c2-12828-1
how fix it?
nodejs v8.2.1
express 4.14.0
request 2.81
404 error on api call
I followed the document to the letter and still got this 404 error whenever i try to access the local server. the error in vita returns C2-12828-1
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
http://ipaddress:80/henkaku/api/a1=8a002000&a2=81b00ec0&a3=e0002280&a4=81200690&&a5=e0600880
C:\inetpub\HENkaku\api\a1=8a002000&a2=81b00ec0&a3=e0002280&a4=81200690&&a5=e0600880&a6
Recommandation: use url-rewrite instead of fiddler
Hi,
how about providing this web.config for the main site? (not the henkaku-app):
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<remove value="Default.asp" />
<remove value="index.htm" />
<remove value="index.html" />
<remove value="iisstart.htm" />
<remove value="default.aspx" />
<remove value="Default.htm" />
<add value="index.html" />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="Test" enabled="true" stopProcessing="true">
<match url="x(.*)" />
<action type="Redirect" url="henkaku/api/{C:0}" appendQueryString="false" redirectType="Permanent" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_URI}" pattern="henkaku(.*)" negate="true" />
<add input="{QUERY_STRING}" pattern="(.*)" />
</conditions>
</rule>
<rule name="Redirect" stopProcessing="true">
<match url="^$" />
<action type="Redirect" url="henkaku/" />
</rule>
<rule name="Install" stopProcessing="true">
<match url="^pkg(.*)" />
<action type="Redirect" url="henkaku/{R:0}" />
</rule>
</rules>
</rewrite>
<staticContent>
<mimeMap fileExtension=".sfo" mimeType="text/plain" />
</staticContent>
</system.webServer>
</configuration>
Users would just have to overwrite their original one from the main page and install this.
It would make fiddler obsolete and the users wouldn't need to mess around with its config.
EDIT: Ok I see you already implemented this with node.js. Im a bit late :p
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.