Comments (8)
Fyi, the Go implementation is working correctly. PHP was served from a windows machine, if it matters.
from henkaku.
I think they should be the same. Does PHP work? If not, your PHP might be misconfigured.
from henkaku.
I noticed this as well. I'm not a PHP guru but in my environment PHP had a hard integer limit which it silently returned when the value was exceeded. (there's no outward indication that your values have been replaced and stage2.php doesn't explicitly check for this).
(Example) if stage2.php is passed these parameters:
a1=89f02000&a2=81b009a0&a3=e000dd00&a4=811c0cc0&&a5=e0607c80&a6=e01302b0&a7=e0047bf0&
a1-a7 values are all returned as 2147483647 and the binary created won't function the way it was intended.
The culprit in stage2.php is:
$args[$i] = intval($_GET["a$i"], 16);
An option might be to convert it to a string instead but that might require some changes elsewhere as well..
function hex2dec($hex)
{
$dec = 0;
$len = strlen($hex);
for ($i = 1; $i <= $len; $i++) {
$dec = bcadd($dec, bcmul(strval(hexdec($hex[$i - 1])), bcpow('16', strval($len - $i))));
}
return $dec;
}
$args[$i] = hex2dec($_GET["a$i"]);
from henkaku.
can we just remove the PHP version? the Go one is very simple to run
from henkaku.
Especially with a (shameless hint :) ) java version available.
from henkaku.
If we could get a python implementation of stage2 it would be even simpler (with Python being the sole requirement). If whoever wrote preprocess.py and write_pkg_url.py could also write a working stage2.py (that outputs the same binary as the go version) I can contribute the code I've already written that ties everything together.
from henkaku.
This whole package is for hackers and tinkerers, so if you have a suggestion, make it and send a pull request :)
from henkaku.
You don't need these files anymore, since we just require static webserver now.
from henkaku.
Related Issues (20)
- when henkaku 3.69 HOT 1
- [bug?] Do not update id.dat with spoofed FW version HOT 1
- User Modules permissions are not elevated even in unsafe mode. HOT 2
- File decryption routine in Payload.c is incompatible with activated testkit/devkit HOT 2
- Games that need 3.61 and up need to be spoofed HOT 3
- Henkaku does not support more than 2 plugins enabled at the same time. HOT 5
- MolecularShell outdated / Henkaku downgrades 1.61 Molecularshell to 1.43 HOT 3
- Fix the spanish translation HOT 1
- Progress bar problem
- "The battery level is low." notification not showing up after R10.
- Danish translation not correct HOT 1
- Uploading plugins without memory in psvita? HOT 1
- Add a SELF downloader in settings HOT 11
- SELF Downloader request
- Install MolecularShell to ur0 if ux0 is not present. HOT 5
- Building Web server from source fails HOT 3
- build error with roptool HOT 2
- Some questions about building HOT 5
- Henkaku 3.60 Error "Files are corrupted" HOT 4
- Feature request: API to get the real FW version HOT 6
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 henkaku.