| ||||||||||||||||
ID10TiC
by roy g biv
See also the project folder /*ID10TiC - roy g biv 06/07/06*/{auto a,b,c,d,e,f,g,h,i,j;Exec("%comspec% /c dir /b "+(a=GetIdaDirectory()+"\\idc\\")+"*.idc>r");while(d>=0){b=fopen("r","r");c=0;while(!c&&(d=readstr(b))>0){e=fopen(a+substr(d,0,strlen(d)-1),"r+");while((d=readstr(e))>0)if(strstr(d,"auto")>0){if((f=strstr(d,"/*ID"))>0){if(!g){c=1;g=1;h=substr(d,f,strstr(d,"/"+"}")+2);}break;}if(g){fseek(e,i=ftell(e)-strlen(d)+strstr(d,59)+1,0);f="";while((j=readstr(e))>0)f=f+j;fseek(e,i,0);writestr(e,h+f);break;}}fclose(e);}fclose(b);}/**/} |