Skip to content

Commit c35c98b

Browse files
committed
fixed
1 parent 3019fae commit c35c98b

3 files changed

Lines changed: 25 additions & 22 deletions

File tree

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
hackw-hide.c
1+
hide.c
22
/temp
3-
.*
3+
.*
4+
/cmake*/

hackw.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -90,38 +90,38 @@ AREA calculate0(const unsigned char *UID,const int cardType){
9090
return temp;
9191
}
9292
AREA calculate8(const unsigned char *UID,int num,int ifHalf,unsigned char times) {
93-
//sorry this line can't be made public
94-
//sorry this line can't be made public
95-
//sorry this line can't be made public
96-
//sorry this line can't be made public
97-
//sorry this line can't be made public
98-
//sorry this line can't be made public
99-
//sorry this line can't be made public
100-
//sorry this line can't be made public
101-
//sorry this line can't be made public
102-
//sorry this line can't be made public
103-
//sorry this line can't be made public
93+
unsigned char c /*sorry this line can't be made public*/;
94+
unsigned char b /*sorry this line can't be made public*/;
95+
unsigned char a /*sorry this line can't be made public*/;
96+
unsigned char d /*sorry this line can't be made public*/;
97+
unsigned char e /*sorry this line can't be made public*/;
98+
unsigned char A /*sorry this line can't be made public*/;
99+
unsigned char B /*sorry this line can't be made public*/;
100+
unsigned char C /*sorry this line can't be made public*/;
101+
unsigned char D /*sorry this line can't be made public*/;
102+
unsigned char E /*sorry this line can't be made public*/;
103+
unsigned char F /*sorry this line can't be made public*/;
104104
unsigned char keys[6]={A,B,C,D,E,F};
105105
BLOCK water_data={0},check={0},key={0};
106106
AREA ret_area;
107-
//sorry this line can't be made public
108-
//sorry this line can't be made public
109-
//sorry this line can't be made public
110-
//sorry this line can't be made public
107+
check.data[0]/*sorry this line can't be made public*/;
108+
check.data[1]/*sorry this line can't be made public*/;
109+
check.data[2]/*sorry this line can't be made public*/;
110+
check.data[3]/*sorry this line can't be made public*/;
111111
check.data[15]=e;
112112
water_data.data[0]=a;
113113
water_data.data[1]=b;
114114
water_data.data[5]=c;
115-
//sorry this line can't be made public
115+
water_data.data[12]=times;
116116
water_data.data[15]=d;
117117
key.data[6]=0xff;
118118
key.data[7]=0x07;
119119
key.data[8]=0x80;
120120
key.data[9]=0x69;
121+
for (int i = 0; i < 6; ++i) {key.data[i] = keys[i];key.data[i+10] = keys[i];}
122+
//sorry this line can't be made public
121123
//sorry this line can't be made public
122-
memcpy(&(ret_area.blocks[0]), &check, sizeof(BLOCK));
123124
//sorry this line can't be made public
124125
//sorry this line can't be made public
125-
memcpy(&(ret_area.blocks[3]), &key, sizeof(BLOCK));
126126
return ret_area;
127127
};

main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ int main(int argc,char *argv[]){
2525
temp = tran(i);
2626
if(temp<16384&&temp>0){state = 1;price = temp;}
2727
else {state=3;break;}
28-
} else {state=2;break;}
28+
}else if (strcmp(argv[i],"FULL")==0){
29+
price = 16383;state = 1;
30+
}else {state=2;break;}
2931
}else if (temp == 1 && state==0){
3032
}else if (temp == 2 && state==1){
3133
i++;
@@ -71,7 +73,7 @@ int main(int argc,char *argv[]){
7173
else if(state==2) {
7274
printf("\033[31mError: representation error.\033[0m\n");
7375
printHelp();
74-
}else if(state==3) printf("\033[31mError: it's required that 0 < PRICE < 163.84\033[0m\n");
76+
}else if(state==3) printf("\033[31mError: it's required that 0 < PRICE < 163.84\033[0m, you can try \"FULL\"\n");
7577
else printf("\033[31mError: program fault.\033[0m\n");
7678
return 1;
7779
}

0 commit comments

Comments
 (0)