Hacking Patching An IOS

wow.

CODEtmd* getTMD(u64 tid){
ÂÂÂÂÂÂÂÂstatic char filepath[256] ATTRIBUTE_ALIGN(32);ÂÂ
ÂÂÂÂÂÂÂÂstatic u8 tmd_buf[MAX_SIGNED_TMD_SIZE] ATTRIBUTE_ALIGN(32);
ÂÂÂÂÂÂÂÂsigned_blob *s_tmd = (signed_blob *)tmd_buf;
ÂÂÂÂÂÂÂÂu32 tmd_size;
ÂÂÂÂÂÂÂÂ
ÂÂÂÂÂÂÂÂif (ES_GetDataDir(tid, filepath) < 0 )
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂreturn NULL;
ÂÂÂÂÂÂÂÂ
ÂÂÂÂÂÂÂÂif (ES_GetStoredTMDSize(tid, &tmd_size) < 0)
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂreturn NULL;
ÂÂÂÂÂÂÂÂ
ÂÂÂÂÂÂÂÂ
ÂÂÂÂÂÂÂÂif (ES_GetStoredTMD(tid, s_tmd, tmd_size) < 0)
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂreturn NULL;

ÂÂÂÂÂÂÂÂtmd *t = SIGNATURE_PAYLOAD(s_tmd);

ÂÂÂÂÂÂÂÂreturn t;
ÂÂÂÂÂÂÂÂ
}

s32 getIOSrev(u64 req)
{
ÂÂÂÂÂÂÂÂu32 tmdsize;
ÂÂÂÂÂÂÂÂu64 tid = 0;
ÂÂÂÂÂÂÂÂu64 *list;
ÂÂÂÂÂÂÂÂu32 titlecount;
ÂÂÂÂÂÂÂÂs32 ret;
ÂÂÂÂÂÂÂÂu32 i;

ÂÂÂÂÂÂÂÂret = ES_GetNumTitles(&titlecount);
ÂÂÂÂÂÂÂÂif(ret < 0)
ÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂret = WII_EINTERNAL;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂgoto out;
ÂÂÂÂÂÂÂÂ}

ÂÂÂÂÂÂÂÂlist = memalign(32, titlecount * sizeof(u64) + 32);

ÂÂÂÂÂÂÂÂret = ES_GetTitles(list, titlecount);
ÂÂÂÂÂÂÂÂif(ret < 0) {
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂfree(list);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂret = WII_EINTERNAL;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂgoto out;
ÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂÂÂ
ÂÂÂÂÂÂÂÂfor(i=0; ititle_versiontitle_version;
ÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂÂÂ
out:
ÂÂÂÂÂÂÂÂreturn ret;
}

obviously this isnt the only way to get it, but it is one example.
 
Makes perfect sense to me - not
wtf.gif


Suppose thats why i aint no programmer =)
 
remember to rotate your blinker fluid every 15,000 miles. if you are using radial blinkers, rotate left-front with left-rear and right-front with right-rear. if you are not using radial blinkers, you can just use the standard X pattern.

chinese or women drivers should rotate the blinker fluid every 2000 miles, as they are known to drive around town with the blinker on 24/7
 
giantpune said:
remember to rotate your blinker fluid every 15,000 miles. if you are using radial blinkers, rotate left-front with left-rear and right-front with right-rear. if you are not using radial blinkers, you can just use the standard X pattern.
user_19711_XC2W9JQR.jpg


user_19711_26M4R7ZL.jpg
 
giantpune said:
remember to rotate your blinker fluid every 15,000 miles. if you are using radial blinkers, rotate left-front with left-rear and right-front with right-rear. if you are not using radial blinkers, you can just use the standard X pattern.

chinese or women drivers should rotate the blinker fluid every 2000 miles, as they are known to drive around town with the blinker on 24/7


and don't forget the gizunta fluid and fratotstat links. gotta lube them fratostat links very often.
 
giantpune said:
chinese or women drivers should rotate the blinker fluid every 2000 miles, as they are known to drive around town with the blinker on 24/7

+1 LOL
 

Site & Scene News

Popular threads in this forum