summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspv420 <spv@spv.sh>2022-07-31 00:01:08 -0400
committerspv420 <spv@spv.sh>2022-07-31 00:01:08 -0400
commitecfc3d061aedcaa08d165227909b6b1098cbebb5 (patch)
tree06e1198119523a23283a266ed68e4f1cc5c202f3
parent30582c3535e1a41a0d385435c14a632bdc0a3715 (diff)
stage4
-rwxr-xr-xbuild_native.sh3
-rwxr-xr-xinstall_native.sh2
-rw-r--r--src/js/main.js6
-rw-r--r--src/stage4/main.js6
-rw-r--r--stage4.js6
5 files changed, 17 insertions, 6 deletions
diff --git a/build_native.sh b/build_native.sh
index ba7f3a6..a2f2a3b 100755
--- a/build_native.sh
+++ b/build_native.sh
@@ -5,6 +5,9 @@ find src/js -name '*.js' -exec cat {} \; >> exp.js
echo >> exp.js
echo "main();" >> exp.js
+rm stage4.js
+find src/stage4 -name '*.js' -exec cat {} \; >> stage4.js
+
# build for host
gcc -I $(pwd)/inc/ \
src/gen/main.c \
diff --git a/install_native.sh b/install_native.sh
index 71e2638..351a0a8 100755
--- a/install_native.sh
+++ b/install_native.sh
@@ -8,7 +8,9 @@
bin/main_arm -f /usr/sbin/racoon -j exp.js -o racoon.conf
cp racoon.conf /etc/racoon/racoon.conf
+rm /var/root/stage4.js
touch /var/root/stage4.js
+cat stage4.js > /var/root/stage4.js
chmod 777 /var/root/stage4.js
ln /var/root/stage4.js /var/mobile/Media/stage4.js
diff --git a/src/js/main.js b/src/js/main.js
index ec7e814..905c4ef 100644
--- a/src/js/main.js
+++ b/src/js/main.js
@@ -126,12 +126,6 @@ function main() {
var dyld_shc_slide = get_dyld_shc_slide();
- sym_cache["JSStringCreateWithUTF8CString"] = JSStringCreateWithUTF8CString + dyld_shc_slide;
- sym_cache["JSObjectGetProperty"] = JSObjectGetProperty + dyld_shc_slide;
- sym_cache["JSContextGetGlobalObject"] = JSContextGetGlobalObject + dyld_shc_slide;
-
-// prep_shit();
-
setup_fancy_rw();
parse_nvram_options();
diff --git a/src/stage4/main.js b/src/stage4/main.js
new file mode 100644
index 0000000..4947a77
--- /dev/null
+++ b/src/stage4/main.js
@@ -0,0 +1,6 @@
+function main() {
+ printf("landed in stage4\n");
+ syslog(LOG_SYSLOG, "we out here in stage 4");
+
+ return 0;
+} \ No newline at end of file
diff --git a/stage4.js b/stage4.js
new file mode 100644
index 0000000..4947a77
--- /dev/null
+++ b/stage4.js
@@ -0,0 +1,6 @@
+function main() {
+ printf("landed in stage4\n");
+ syslog(LOG_SYSLOG, "we out here in stage 4");
+
+ return 0;
+} \ No newline at end of file