This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Original code by Miononno | |
* https://www.youtube.com/watch?v=1kanq1w2DA0 | |
* | |
* Enhanced by unknown @ lteforum.at | |
* | |
*/ | |
console.log("Loading ZTE Script v" + "2024-08-31-#1"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: ftb(); | |
siginfo = | |
"lte_ca_scell_present,lte_ca_scell_ca_activated,lte_ca_scell_earfcn,lte_ca_scell_pci," + | |
"lte_ca_scell_rsrp,lte_ca_scell_rsrq,lte_ca_scell_serv_rssnr," + | |
"rssi_1,rssi_2,rssi_3,rssi_4,rscp_1,ecio_1,rscp_2,ecio_2,rscp_3,ecio_3,rscp_4,ecio_4," + | |
"evdo_sinr,tx_power,wan_csq,wan_lte_ca_dl_channel,tx_power,Z5g_rsrp,Z5g_rsrq,Z5g_SINR," + | |
"wan_lte_ca_sinr,lte_rsrp_1,lte_rsrp_2,lte_rsrp_3,lte_rsrp_4," + | |
"lte_snr_1,lte_snr_2,lte_snr_3,lte_snr_4,5g_rx0_rsrp,5g_rx1_rsrp," + | |
"lte_pci,lte_pci_lock,lte_earfcn_lock,wan_ipaddr,wan_apn,pm_sensor_mdm,pm_modem_5g," + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <time.h> | |
#include <errno.h> | |
#include <sys/sysctl.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <arpa/inet.h> | |
#include <sys/socket.h> | |
#include <sys/time.h> | |
#include <string.h> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl2-config --cflags` -x c++-header -o shared/cube.h.gch.tmp shared/cube.h | |
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -DSTANDALONE -Ishared -Iengine -Ifpsgame -Ienet/include -c -o shared/crypto-standalone.o shared/crypto.cpp | |
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -DSTANDALONE -Ishared -Iengine -Ifpsgame -Ienet/include -c -o shared/stream-standalone.o shared/stream.cpp | |
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -DSTANDALONE -Ishared -Iengine -Ifpsgame -Ienet/include -c -o shared/tools-standalone.o shared/tools.cpp | |
g++ -O3 -fomit-frame-pointer -ffast-math -Wall -fsigned-char -fno-exceptions -fno-rtti -DSTANDALONE -Ishared -Iengine -Ifpsgame -Ienet/include -c -o engine/command-standalone.o engine/command.cpp | |
mv shared/cube.h.gch. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thomas@vps97578:~$ dd if=/dev/zero of=test bs=1MB count=1024 | |
1024+0 records in | |
1024+0 records out | |
1024000000 bytes (1.0 GB) copied, 31.6733 s, 32.3 MB/s | |
--- 8.8.8.8 ping statistics --- | |
1000 packets transmitted, 1000 received, 0% packet loss, time 213690ms | |
rtt min/avg/max/mdev = 6.661/9.404/192.711/11.495 ms | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
patching file src/ld/HeaderAndLoadCommands.hpp | |
patching file src/ld/LinkEdit.hpp | |
Hunk #4 merged at 1172. | |
Hunk #6 merged at 1230. | |
Hunk #7 merged at 1246,1248. | |
Hunk #8 merged at 1261. | |
Hunk #13 merged at 1386,1388. | |
patching file src/ld/LinkEditClassic.hpp | |
patching file src/ld/Options.cpp | |
Hunk #2 merged at 637,640, NOT MERGED at 643-649. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ valgrind ld -demangle -dynamic -arch arm64 -iphoneos_version_min 8.4.0 -syslibroot [...] -o a.out test.o -lSystem | |
==32068== Memcheck, a memory error detector | |
==32068== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. | |
==32068== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info | |
==32068== Command: ld -demangle -dynamic -arch arm64 -iphoneos_version_min 8.4.0 -syslibroot [...] -o a.out test.o -lSystem | |
==32068== | |
==32068== Conditional jump or move depends on uninitialised value(s) | |
==32068== at 0x43FDD9: Options::minOS(ld::MacVersionMin, ld::IOSVersionMin) (Options.cpp:1463) | |
==32068== by 0x4397B8: Options::reconfigureDefaults() (Options.cpp:4168) | |
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ valgrind ld -demangle -object_path_lto /tmp/cc-d8d063.o -dynamic -arch x86_64 -macosx_version_min 10.11.0 -syslibroot [...] -o a.out -lcrt1.10.5.o test.o -lstdc++ -lSystem -lgcc_s.10.5 -v | |
==4434== Memcheck, a memory error detector | |
==4434== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. | |
==4434== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info | |
==4434== Command: ld -demangle -object_path_lto /tmp/cc-d8d063.o -dynamic -arch x86_64 -macosx_version_min 10.11.0 -syslibroot [...] -o a.out -lcrt1.10.5.o test.o -lstdc++ -lSystem -lgcc_s.10.5 -v | |
==4434== | |
253.3 | |
configured to support archs: armv4t armv5 armv6 armv7 armv7f armv7k armv7s armv6m armv7m armv7em armv8 arm64 arm64v8 i386 x86_64 x86_64h (tvOS) | |
Library search paths: | |
[...] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/build.sh b/build.sh | |
index b6954c8..f666b3f 100755 | |
--- a/build.sh | |
+++ b/build.sh | |
@@ -163,7 +163,7 @@ fi | |
CCTOOLS="cctools-862-ld64-$LINKER_VERSION" | |
CCTOOLS_TARBALL=`ls $TARBALL_DIR/$CCTOOLS*.tar.* | head -n1` | |
-CCTOOLS_REVHASH=`echo "$CCTOOLS_TARBALL" head -n1 | tr '_' ' ' | tr '.' ' ' | awk '{print $3}'` | |
+CCTOOLS_REVHASH=`echo "$CCTOOLS_TARBALL" | tr '_' ' ' | tr '.' ' ' | awk '{print $3}'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat internal.h | |
#define DEFINE_SYMBOL(sym, name, _visibility) \ | |
extern const char _##name __asm(#sym); __attribute__((visibility(#_visibility))) const char _##name; | |
$ cat SDK/src/usr/lib/libc++.c | |
/* | |
* Deps: | |
* /usr/lib/libc++.1.dylib | |
* /usr/lib/libc++abi.dylib | |
* /usr/lib/libSystem.B.dylib |
NewerOlder