Advertisement
Guest User

Untitled

a guest
Aug 31st, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.70 KB | None | 0 0
  1. LexiconLast Wednesday at 6:22 PM
  2. function(context, args)
  3. {
  4. var caller = context.caller;
  5. var l = #fs.scripts.lib();
  6.  
  7. var obj = {
  8. counter: 0,
  9. get string() {
  10. var o = #db.f({SID:"testThing"}).array()[0];
  11. l.log("counter");
  12. o.counter++;
  13. #db.u({id:o.id}, {$set:{"counter": o.counter}});
  14. if(o.counter == 1)
  15. {
  16. var x = {
  17. length: 128,
  18. };
  19. return x;
  20. }
  21. else if (o.counter > 1){
  22. return null;
  23. l.log("counter++");
  24. }
  25. return "c".repeat(129);
  26. }
  27. }
  28. #db.i({SID:"testThing", counter: 0});
  29. #fs.stack.box({password: obj.string});
  30. #db.r({})
  31. return l.get_log();
  32.  
  33. }
  34. (edited)
  35. SprocketLast Wednesday at 6:23 PM
  36. ...
  37. w
  38. LexiconLast Wednesday at 6:23 PM
  39. lol
  40. SprocketLast Wednesday at 6:23 PM
  41. oh
  42. i kind of get it
  43. LexiconLast Wednesday at 6:23 PM
  44. ye
  45. am i overcomplicating the counter lol
  46. i couldn't figure out a way to make it persist state in calls besides using db
  47. probably also overcomplicating that too
  48. SprocketLast Wednesday at 6:24 PM
  49. psst use #D or an array u push to instead of scripts.lib.log
  50. LexiconLast Wednesday at 6:24 PM
  51. ?
  52. store that in db instead of scripts.log?
  53. ohhh
  54. i see
  55. SprocketLast Wednesday at 6:30 PM
  56. also
  57. when you pass obj.string as the password
  58. you're triggering the getter
  59. and you actually pass whatever your getter returns(edited)
  60. LexiconLast Wednesday at 6:31 PM
  61. oh
  62. well
  63. fuck
  64. SprocketLast Wednesday at 6:31 PM
  65. can't reference getters m8
  66. have to pass the whole object
  67. LexiconLast Wednesday at 6:31 PM
  68. but then how do i know which property gets referenced was my issue
  69. SprocketLast Wednesday at 6:31 PM
  70. well
  71. the one the script fucking asks you for
  72. :P
  73. LexiconLast Wednesday at 6:32 PM
  74. oh
  75. derp
  76. i get it now
  77. there we go that should get me going
  78. SprocketLast Wednesday at 6:32 PM
  79. yes
  80. now you're sort of barking up the right tree
  81. i hope
  82. LexiconLast Wednesday at 6:33 PM
  83. hope so lol
  84. i'm getting more useful output now so that makes sense
  85. SprocketLast Wednesday at 6:35 PM
  86. yes
  87. LexiconLast Wednesday at 6:35 PM
  88. ah ha
  89. i got it
  90. SprocketLast Wednesday at 6:35 PM
  91. what'd you get
  92. lemme see
  93. LexiconLast Wednesday at 6:36 PM
  94. okay i haven't cracked it yet but i'm more certain i'm on the right path
  95. SprocketLast Wednesday at 6:36 PM
  96. :eyes: output
  97. :P
  98. LexiconLast Wednesday at 6:36 PM
  99. 'cannot read property '0' of null'
  100. SprocketLast Wednesday at 6:37 PM
  101. hehe
  102. you got one of the two clues
  103. LexiconLast Wednesday at 6:37 PM
  104. yeah i get where this is going
  105. i think
  106. SprocketLast Wednesday at 8:40 PM
  107. u solve it yet?
  108. LexiconLast Wednesday at 8:40 PM
  109. working on automation
  110. almost got the code finished, gonna run in like < 5 min
  111. SprocketLast Wednesday at 8:41 PM
  112. heh
  113. cool
  114. you figured it out then
  115. LexiconLast Wednesday at 8:41 PM
  116. yeah
  117. SprocketLast Wednesday at 8:41 PM
  118. interested to see your solve
  119. LexiconLast Wednesday at 8:41 PM
  120. its gonna be messy
  121. will show u when i'm sure it actually works
  122. SprocketLast Wednesday at 8:41 PM
  123. mine is worse
  124. manual
  125. :P
  126. LexiconLast Wednesday at 8:42 PM
  127. oof why
  128. that just sounds painful
  129. SprocketLast Wednesday at 8:42 PM
  130. 'cause i'm lazy
  131. its only 128 chars
  132. not that bad really
  133. LexiconLast Wednesday at 8:42 PM
  134. fair
  135. SprocketLast Wednesday at 8:42 PM
  136. couple minutes
  137. LexiconLast Wednesday at 9:13 PM
  138. slightly messy solution:
  139. SprocketLast Wednesday at 9:14 PM
  140. ?
  141. LexiconLast Wednesday at 9:14 PM
  142. huh clyde didn't deliver my message
  143. weird
  144. SprocketLast Wednesday at 9:14 PM
  145. hastebin it
  146. LexiconLast Wednesday at 9:14 PM
  147. oh yeah code is too long
  148. ye
  149. SprocketLast Wednesday at 9:15 PM
  150. fatal error with authentication >:(
  151. LexiconLast Wednesday at 9:15 PM
  152. ?
  153. SprocketLast Wednesday at 9:15 PM
  154. hackmud
  155. being dum
  156. LexiconLast Wednesday at 9:15 PM
  157. it happens sometimes dude
  158. SprocketLast Wednesday at 9:16 PM
  159. yes
  160. anwyay
  161. hastebin
  162. LexiconLast Wednesday at 9:16 PM
  163. https://hastebin.com/ubogabehon.php
  164. there u go
  165. SprocketLast Wednesday at 9:17 PM
  166. suddenly 2 indends for one block
  167. the hecc
  168. LexiconLast Wednesday at 9:17 PM
  169. is messy
  170. sorry
  171. SprocketLast Wednesday at 9:17 PM
  172. using SID instead of _id >:(
  173. LexiconLast Wednesday at 9:18 PM
  174. shush it works
  175. SprocketLast Wednesday at 9:18 PM
  176. using the database at all for this >:(
  177. LexiconLast Wednesday at 9:18 PM
  178. easy way for persistence
  179. SprocketLast Wednesday at 9:18 PM
  180. also you can shorten the character search space because the password is most definitely hex
  181. a-f 0-9
  182. LexiconLast Wednesday at 9:18 PM
  183. oh true
  184. that'd probably make it faster
  185. SprocketLast Wednesday at 9:18 PM
  186. i just did full ascii range because i didn't kow that at first
  187. LexiconLast Wednesday at 9:19 PM
  188. lemme change that and see how fast it go
  189. but hey it works
  190. SprocketLast Wednesday at 9:19 PM
  191. cool
  192. you have to do the last char manually
  193. btw
  194. LexiconLast Wednesday at 9:19 PM
  195. ? why that
  196. oh yeah
  197. SprocketLast Wednesday at 9:19 PM
  198. yes
  199. so... account for that
  200. :P
  201. LexiconLast Wednesday at 9:20 PM
  202. yeah yeah okay
  203. SprocketLast Wednesday at 9:20 PM
  204. and then you'll be on the next part with me
  205. which i have some ideas for
  206. LexiconLast Wednesday at 9:20 PM
  207. gimme a couple min to implement fixes and w/e
  208. SprocketLast Wednesday at 9:20 PM
  209. yeah, i gotta sleep anyway
  210. can work more tomorrow
  211. LexiconLast Wednesday at 9:20 PM
  212. will talk to u tmrw then
  213. August 30, 2018
  214. LexiconYesterday at 11:17 AM
  215. Well throwing the obvious at it doesn't give anything that I can find, I'll prod more when I get up
  216. SprocketYesterday at 4:01 PM
  217. i have a couple ideas
  218. if they work i will be very happy
  219. yay
  220. it does work
  221. hrm
  222. not sure what to do from here
  223. LexiconYesterday at 4:08 PM
  224. Well the obvious guess (for me) was to try some kind of debugging with normal user stymie134 as username and password as itself but it's obviously coded better than the previous
  225. SprocketYesterday at 4:08 PM
  226. ok
  227. so
  228. you can crack the password
  229. with one of the greatest mongodb tricks for poorly sanatized input
  230. ever
  231. LexiconYesterday at 4:09 PM
  232. Hrm
  233. Will look then
  234. SprocketYesterday at 4:09 PM
  235. :P
  236. tho i
  237. am 99% sure
  238. the user panel
  239. can't do much
  240. LexiconYesterday at 4:09 PM
  241. it's not the same password for user panel and admin? damn
  242. SprocketYesterday at 4:09 PM
  243. 'cause the other usernames you find under the admin guys stuff don't work
  244. LexiconYesterday at 4:10 PM
  245. gotcha
  246. oh that was easy
  247. SprocketYesterday at 4:17 PM
  248. yea
  249. >:( ok
  250. LexiconYesterday at 4:17 PM
  251. "welcome, [Object object]" lmao
  252. SprocketYesterday at 4:17 PM
  253. wait what
  254. what'd you do
  255. LexiconYesterday at 4:17 PM
  256. you can do it like uhhh
  257. username: {"$ne": null},
  258. password: {"$ne": null}
  259. SprocketYesterday at 4:18 PM
  260. oh
  261. LexiconYesterday at 4:18 PM
  262. or you can specify user
  263. SprocketYesterday at 4:18 PM
  264. lmao
  265. LexiconYesterday at 4:18 PM
  266. yeah
  267. SprocketYesterday at 4:18 PM
  268. thats not how i did it
  269. LexiconYesterday at 4:18 PM
  270. how did you do it?
  271. SprocketYesterday at 4:18 PM
  272. {"$exists":true} is a thing
  273. LexiconYesterday at 4:18 PM
  274. LMAO
  275. that's beautiful
  276. SprocketYesterday at 4:29 PM
  277. ahaha
  278. i figured it out
  279. LexiconYesterday at 4:30 PM
  280. im working on it still, i think i might be on the right track but not sure
  281. ah ha
  282. SprocketYesterday at 4:40 PM
  283. wotcha doin
  284. LexiconYesterday at 4:40 PM
  285. working on extracting the password but i figured out the method to it
  286. SprocketYesterday at 4:40 PM
  287. whats the method
  288. LexiconYesterday at 4:40 PM
  289. $regex
  290. lmao
  291. SprocketYesterday at 4:40 PM
  292. yep
  293. you probably got it faster than i did
  294. i have 2 chars
  295. LexiconYesterday at 4:40 PM
  296. now all i gotta do is automate that
  297. or i could do it manually
  298. SprocketYesterday at 4:40 PM
  299. how many do you have
  300. LexiconYesterday at 4:40 PM
  301. that's probably faster
  302. hang on
  303. none so far but it won't take too long
  304. SprocketYesterday at 4:41 PM
  305. 3 chars now
  306. 4
  307. LexiconYesterday at 4:42 PM
  308. yeah you'r egonna beat me here
  309. SprocketYesterday at 4:42 PM
  310. also its only 10 chars total on my solve
  311. LexiconYesterday at 4:42 PM
  312. i don't actually hav ethe loop coded yet
  313. same here
  314. SprocketYesterday at 4:46 PM
  315. 7
  316. LexiconYesterday at 4:48 PM
  317. done
  318. SprocketYesterday at 4:48 PM
  319. wew
  320. noice
  321. LexiconYesterday at 4:48 PM
  322. it's an
  323. odd
  324. string
  325. SprocketYesterday at 4:49 PM
  326. what is it?
  327. LexiconYesterday at 4:50 PM
  328. 97999f29af
  329. :smile:
  330. SprocketYesterday at 4:51 PM
  331. heh
  332. randomly generated
  333. 99% sure is slice of hash
  334. LexiconYesterday at 4:52 PM
  335. prolly
  336. are you uh
  337. robot?(edited)
  338. SprocketYesterday at 4:52 PM
  339. yes
  340. LexiconYesterday at 4:52 PM
  341. figured(edited)
  342. now gib hint on heart :stuck_out_tongue:
  343. jkjk
  344. don't want disqualification(edited)
  345. SprocketYesterday at 4:59 PM
  346. if you guys are still on p2s2
  347. i can honestly say i remember basically nothing about how that one works
  348. LexiconYesterday at 5:00 PM
  349. i'll go back to pokin it lol
  350. SprocketYesterday at 5:00 PM
  351. other than the solution string is all uppercase letters, although i think case doesn't matter
  352. LexiconYesterday at 5:00 PM
  353. prolly doesnt
  354. just feelsbadman that we're stuck on the easy step of it
  355. SprocketYesterday at 5:00 PM
  356. there is an image that has colored stripes
  357. and then you get letters from it
  358. LexiconYesterday at 5:01 PM
  359. woah really
  360. SprocketYesterday at 5:01 PM
  361. i wasn't really paying attention when my group solved it
  362. p2s3 on the other hand
  363. LexiconYesterday at 5:01 PM
  364. yeah alic banned you for a reason
  365. SprocketYesterday at 5:01 PM
  366. yep
  367. asides from p2s2 i remember all the solutions
  368. LexiconYesterday at 5:02 PM
  369. gotcha
  370. well will let u know if we make progress
  371. SprocketYesterday at 5:02 PM
  372. dammit discord
  373. LexiconYesterday at 5:02 PM
  374. oof
  375. SprocketYesterday at 5:02 PM
  376. fuck
  377. LexiconYesterday at 5:02 PM
  378. l m a ooooooooo
  379. SprocketYesterday at 5:02 PM
  380. shush
  381. you didn't see anything
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement