Advertisement
Guest User

Untitled

a guest
Oct 8th, 2018
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.07 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdint.h>
  3.  
  4. int main(){
  5. uint64_t bin[] = {0x3030303030303030,0x3130303030303030,0x3031303030303030,0x3131303030303030,0x3030313030303030,0x3130313030303030,0x3031313030303030,0x3131313030303030,\
  6. 0x3030303130303030,0x3130303130303030,0x3031303130303030,0x3131303130303030,0x3030313130303030,0x3130313130303030,0x3031313130303030,0x3131313130303030,\
  7. 0x3030303031303030,0x3130303031303030,0x3031303031303030,0x3131303031303030,0x3030313031303030,0x3130313031303030,0x3031313031303030,0x3131313031303030,\
  8. 0x3030303131303030,0x3130303131303030,0x3031303131303030,0x3131303131303030,0x3030313131303030,0x3130313131303030,0x3031313131303030,0x3131313131303030,\
  9. 0x3030303030313030,0x3130303030313030,0x3031303030313030,0x3131303030313030,0x3030313030313030,0x3130313030313030,0x3031313030313030,0x3131313030313030,\
  10. 0x3030303130313030,0x3130303130313030,0x3031303130313030,0x3131303130313030,0x3030313130313030,0x3130313130313030,0x3031313130313030,0x3131313130313030,\
  11. 0x3030303031313030,0x3130303031313030,0x3031303031313030,0x3131303031313030,0x3030313031313030,0x3130313031313030,0x3031313031313030,0x3131313031313030,\
  12. 0x3030303131313030,0x3130303131313030,0x3031303131313030,0x3131303131313030,0x3030313131313030,0x3130313131313030,0x3031313131313030,0x3131313131313030,\
  13. 0x3030303030303130,0x3130303030303130,0x3031303030303130,0x3131303030303130,0x3030313030303130,0x3130313030303130,0x3031313030303130,0x3131313030303130,\
  14. 0x3030303130303130,0x3130303130303130,0x3031303130303130,0x3131303130303130,0x3030313130303130,0x3130313130303130,0x3031313130303130,0x3131313130303130,\
  15. 0x3030303031303130,0x3130303031303130,0x3031303031303130,0x3131303031303130,0x3030313031303130,0x3130313031303130,0x3031313031303130,0x3131313031303130,\
  16. 0x3030303131303130,0x3130303131303130,0x3031303131303130,0x3131303131303130,0x3030313131303130,0x3130313131303130,0x3031313131303130,0x3131313131303130,\
  17. 0x3030303030313130,0x3130303030313130,0x3031303030313130,0x3131303030313130,0x3030313030313130,0x3130313030313130,0x3031313030313130,0x3131313030313130,\
  18. 0x3030303130313130,0x3130303130313130,0x3031303130313130,0x3131303130313130,0x3030313130313130,0x3130313130313130,0x3031313130313130,0x3131313130313130,\
  19. 0x3030303031313130,0x3130303031313130,0x3031303031313130,0x3131303031313130,0x3030313031313130,0x3130313031313130,0x3031313031313130,0x3131313031313130,\
  20. 0x3030303131313130,0x3130303131313130,0x3031303131313130,0x3131303131313130,0x3030313131313130,0x3130313131313130,0x3031313131313130,0x3131313131313130,\
  21. 0x3030303030303031,0x3130303030303031,0x3031303030303031,0x3131303030303031,0x3030313030303031,0x3130313030303031,0x3031313030303031,0x3131313030303031,\
  22. 0x3030303130303031,0x3130303130303031,0x3031303130303031,0x3131303130303031,0x3030313130303031,0x3130313130303031,0x3031313130303031,0x3131313130303031,\
  23. 0x3030303031303031,0x3130303031303031,0x3031303031303031,0x3131303031303031,0x3030313031303031,0x3130313031303031,0x3031313031303031,0x3131313031303031,\
  24. 0x3030303131303031,0x3130303131303031,0x3031303131303031,0x3131303131303031,0x3030313131303031,0x3130313131303031,0x3031313131303031,0x3131313131303031,\
  25. 0x3030303030313031,0x3130303030313031,0x3031303030313031,0x3131303030313031,0x3030313030313031,0x3130313030313031,0x3031313030313031,0x3131313030313031,\
  26. 0x3030303130313031,0x3130303130313031,0x3031303130313031,0x3131303130313031,0x3030313130313031,0x3130313130313031,0x3031313130313031,0x3131313130313031,\
  27. 0x3030303031313031,0x3130303031313031,0x3031303031313031,0x3131303031313031,0x3030313031313031,0x3130313031313031,0x3031313031313031,0x3131313031313031,\
  28. 0x3030303131313031,0x3130303131313031,0x3031303131313031,0x3131303131313031,0x3030313131313031,0x3130313131313031,0x3031313131313031,0x3131313131313031,\
  29. 0x3030303030303131,0x3130303030303131,0x3031303030303131,0x3131303030303131,0x3030313030303131,0x3130313030303131,0x3031313030303131,0x3131313030303131,\
  30. 0x3030303130303131,0x3130303130303131,0x3031303130303131,0x3131303130303131,0x3030313130303131,0x3130313130303131,0x3031313130303131,0x3131313130303131,\
  31. 0x3030303031303131,0x3130303031303131,0x3031303031303131,0x3131303031303131,0x3030313031303131,0x3130313031303131,0x3031313031303131,0x3131313031303131,\
  32. 0x3030303131303131,0x3130303131303131,0x3031303131303131,0x3131303131303131,0x3030313131303131,0x3130313131303131,0x3031313131303131,0x3131313131303131,\
  33. 0x3030303030313131,0x3130303030313131,0x3031303030313131,0x3131303030313131,0x3030313030313131,0x3130313030313131,0x3031313030313131,0x3131313030313131,\
  34. 0x3030303130313131,0x3130303130313131,0x3031303130313131,0x3131303130313131,0x3030313130313131,0x3130313130313131,0x3031313130313131,0x3131313130313131,\
  35. 0x3030303031313131,0x3130303031313131,0x3031303031313131,0x3131303031313131,0x3030313031313131,0x3130313031313131,0x3031313031313131,0x3131313031313131,\
  36. 0x3030303131313131,0x3130303131313131,0x3031303131313131,0x3131303131313131,0x3030313131313131,0x3130313131313131,0x3031313131313131,0x3131313131313131};
  37. uint8_t c;
  38. while (!feof(stdin) && !ferror(stdin)) {
  39. fread(&c, 1, 1, stdin);
  40. printf("%.*s", 8, (char*) &(bin[c]));
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement