Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1.  
  2. byte[] Key = { 0x1a, 0xc1, 0xd1, 0x2d, 0x52, 0x7c, 0x59, 0xb4, 0x0e, 0xca, 0x61, 0x91, 0x20, 0xff, 0x82, 0x17, 0xcc, 0xff, 0x09, 0xcd, 0x16, 0x89, 0x6f, 0x81, 0xb8, 0x29, 0xc7, 0xf5, 0x27, 0x93, 0x40, 0x5d };
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10. // Iv table
  11.  
  12.  
  13.  
  14. private static byte[] Table;
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22. // Lookup values
  23.  
  24.  
  25.  
  26. private static int[] BlockNums;
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34. public static void BuildTable(byte[] Feed)
  35.  
  36.  
  37.  
  38. {
  39.  
  40.  
  41.  
  42. // Init tables
  43.  
  44.  
  45.  
  46. Table = new byte[4000];
  47.  
  48.  
  49.  
  50. BlockNums = new int[] { 1, 1, 1, 1 };
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57. // Build table
  58.  
  59.  
  60. int ptr = 0;
  61.  
  62.  
  63.  
  64. for (int i = 0; i < 200; i++)
  65.  
  66.  
  67.  
  68. {
  69.  
  70.  
  71.  
  72. for (int x = 0; x < 5; x++)
  73.  
  74.  
  75.  
  76. {
  77.  
  78.  
  79.  
  80. // Check next byte
  81.  
  82.  
  83.  
  84. if (Feed[ptr] == 0x00)
  85.  
  86.  
  87.  
  88. ptr = 0;
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96. // Copy 4 times
  97.  
  98.  
  99.  
  100. Table[(i * 20) + (x * 4)] = Feed[ptr];
  101.  
  102.  
  103.  
  104. Table[(i * 20) + (x * 4) + 1] = Feed[ptr];
  105.  
  106.  
  107.  
  108. Table[(i * 20) + (x * 4) + 2] = Feed[ptr];
  109.  
  110.  
  111.  
  112. Table[(i * 20) + (x * 4) + 3] = Feed[ptr];
  113.  
  114.  
  115.  
  116. ptr++;
  117.  
  118.  
  119.  
  120. }
  121.  
  122.  
  123.  
  124. }
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141. byte[] Key = { 0x1a, 0xc1, 0xd1, 0x2d, 0x52, 0x7c, 0x59, 0xb4, 0x0e, 0xca, 0x61, 0x91, 0x20, 0xff, 0x82, 0x17, 0xcc, 0xff, 0x09, 0xcd, 0x16, 0x89, 0x6f, 0x81, 0xb8, 0x29, 0xc7, 0xf5, 0x27, 0x93, 0x40, 0x5d
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148. // Iv table
  149.  
  150.  
  151.  
  152. private static byte[] Table;
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160. // Lookup values
  161.  
  162.  
  163. private static int[] BlockNums;
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171. public static void BuildTable(byte[] Feed)
  172.  
  173.  
  174.  
  175. {
  176.  
  177.  
  178.  
  179. // Init tables
  180.  
  181.  
  182.  
  183. Table = new byte[4000];
  184.  
  185.  
  186.  
  187. BlockNums = new int[] { 1, 1, 1, 1 };
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195. // Build table
  196.  
  197.  
  198.  
  199. int ptr = 0;
  200.  
  201.  
  202.  
  203. for (int i = 0; i < 200; i++)
  204.  
  205.  
  206.  
  207. {
  208.  
  209.  
  210.  
  211. for (int x = 0; x < 5; x++)
  212.  
  213.  
  214.  
  215. {
  216.  
  217.  
  218.  
  219. // Check next byt
  220. if (Feed[ptr] == 0x00)
  221.  
  222.  
  223.  
  224. ptr = 0;
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232. // Copy 4 times
  233.  
  234.  
  235.  
  236. Table[(i * 20) + (x * 4)] = Feed[ptr];
  237.  
  238.  
  239.  
  240. Table[(i * 20) + (x * 4) + 1] = Feed[ptr];
  241.  
  242.  
  243.  
  244. Table[(i * 20) + (x * 4) + 2] = Feed[ptr];
  245.  
  246.  
  247.  
  248. Table[(i * 20) + (x * 4) + 3] = Feed[ptr];
  249.  
  250.  
  251.  
  252. ptr++;
  253.  
  254.  
  255.  
  256. }
  257.  
  258.  
  259.  
  260. }
  261.  
  262.  
  263.  
  264. }
  265.  
  266.  
  267.  
  268.  
  269. #include <stdio.h>
  270.  
  271. main(t,_,a)char *a;{return!0<t?t<3?main(-79,-13,a+main(-87,1-_,
  272.  
  273. main(-86,0,a+1)+a)):1,t<_?main(t+1,_,a):3,main(-94,-27+t,a)
  274. ;&&t==2?_<13?
  275.  
  276. main(2,_+1,"%s %d %d\n"):9:16:t<0?t<-72?main(_,t,
  277.  
  278. "@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{
  279. ;l,+,/n{n+,/+#n+,/#\
  280.  
  281. ;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l \
  282.  
  283. q#'+d'K#!/+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w')
  284. 23;){nl]'/+#n';d}rw' i;# \
  285.  
  286. ){nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#n'wk nw' \
  287.  
  288. iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \
  289.  
  290. ;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;#'rdq#w! nr'/ ') }+}{rl#'{n' ')# \
  291.  
  292. }'+}##(!!/")
  293.  
  294. :t<-50?_==*a?putchar(31[a]):main(-65,_,a+1):main((*a==
  295. '/')+t,_,a+1)
  296.  
  297. :0<t?main(2,2,"%s"):*a=='/'||main(0,main(-61,*a,
  298.  
  299. "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement