Rhilip

np bencode parse

Apr 26th, 2019
180
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Array
  2. (
  3. [type] => dictionary
  4. [value] => Array
  5. (
  6. [info] => Array
  7. (
  8. [type] => dictionary
  9. [value] => Array
  10. (
  11. [length] => Array
  12. (
  13. [type] => integer
  14. [value] => 364
  15. [strlen] => 5
  16. [string] => i364e
  17. )
  18.  
  19. [name] => Array
  20. (
  21. [type] => string
  22. [value] => test.rar
  23. [strlen] => 10
  24. [string] => 8:test.rar
  25. )
  26.  
  27. )
  28.  
  29. [strlen] => 31
  30. [string] => d6:lengthi364e4:name8:test.rare
  31. )
  32.  
  33. [int] => Array
  34. (
  35. [type] => integer
  36. [value] => 1548400939
  37. [strlen] => 12
  38. [string] => i1548400939e
  39. )
  40.  
  41. [list] => Array
  42. (
  43. [type] => list
  44. [value] => Array
  45. (
  46. [0] => Array
  47. (
  48. [type] => string
  49. [value] => UTF-8
  50. [strlen] => 7
  51. [string] => 5:UTF-8
  52. )
  53.  
  54. [1] => Array
  55. (
  56. [type] => string
  57. [value] => GBK
  58. [strlen] => 5
  59. [string] => 3:GBK
  60. )
  61.  
  62. )
  63.  
  64. [strlen] => 14
  65. [string] => l5:UTF-83:GBKe
  66. )
  67.  
  68. [string] => Array
  69. (
  70. [type] => string
  71. [value] => uTorrent/3130
  72. [strlen] => 16
  73. [string] => 13:uTorrent/3130
  74. )
  75.  
  76. )
  77.  
  78. [strlen] => 100
  79. [string] => d4:infod6:lengthi364e4:name8:test.rare3:inti1548400939e4:listl5:UTF-83:GBKe6:string13:uTorrent/3130e
  80. )
  81.  
  82. Array
  83. (
  84. [type] => dictionary
  85. [value] => Array
  86. (
  87. [info] => Array
  88. (
  89. [type] => dictionary
  90. [value] => Array
  91. (
  92. [length] => Array
  93. (
  94. [type] => integer
  95. [value] => 364
  96. [strlen] => 5
  97. [string] => i364e
  98. )
  99.  
  100. [name] => Array
  101. (
  102. [type] => string
  103. [value] => test.rar
  104. [strlen] => 10
  105. [string] => 8:test.rar
  106. )
  107.  
  108. )
  109.  
  110. [strlen] => 31
  111. [string] => d6:lengthi364e4:name8:test.rare
  112. )
  113.  
  114. [int] => Array
  115. (
  116. [type] => integer
  117. [value] => 1548400939
  118. [strlen] => 12
  119. [string] => i1548400939e
  120. )
  121.  
  122. [list] => Array
  123. (
  124. [type] => list
  125. [value] => Array
  126. (
  127. [0] => Array
  128. (
  129. [type] => string
  130. [value] => UTF-8
  131. [strlen] => 7
  132. [string] => 5:UTF-8
  133. )
  134.  
  135. [1] => Array
  136. (
  137. [type] => string
  138. [value] => GBK
  139. [strlen] => 5
  140. [string] => 3:GBK
  141. )
  142.  
  143. )
  144.  
  145. [strlen] => 14
  146. [string] => l5:UTF-83:GBKe
  147. )
  148.  
  149. [string] => Array
  150. (
  151. [type] => string
  152. [value] => uTorrent/3130
  153. [strlen] => 16
  154. [string] => 13:uTorrent/3130
  155. )
  156.  
  157. )
  158.  
  159. [strlen] => 100
  160. [string] => d4:infod6:lengthi364e4:name8:test.rare3:inti1548400939e4:listl5:UTF-83:GBKe6:string13:uTorrent/3130e
  161. )
  162.  
  163. bool(true)
RAW Paste Data