Skip to content

Instantly share code, notes, and snippets.

@unstabler
Created August 23, 2024 08:58
Show Gist options
  • Save unstabler/bd2d196252fc0b8c81f495be381f5019 to your computer and use it in GitHub Desktop.
Save unstabler/bd2d196252fc0b8c81f495be381f5019 to your computer and use it in GitHub Desktop.
디지털민방위교육
#!/bin/sh
USER_ID='YOUR_USER_ID'
PHPSESSID='YOUR_PHPSESSID'
for idx in `seq 20 30`; do for x in `seq 1 20`; do curl 'http://www.civildefense.co.kr/bb_player/save_time.php?1=1&idx='$idx'&lec_no=2&playtime=16&endtime=999&id='$USER_ID'&time='$x'&next='$(( $idx + 1 ))'&' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Referer: http://www.civildefense.co.kr/bb_player/hmp_player.php?turn=2' -H 'Cookie: PHPSESSID='$PHPSESSID; done; done

미래의 나에게

  • 마지막 퀴즈는 아래와 같은 코드로 랜덤으로 풀려고 하지 말것. 어차피 문제 풀이에 정답 다 나와있음
document.querySelectorAll('td').forEach(td => {
  let inputs = Array.from(td.querySelectorAll('input'));
  if (!inputs.length) return;
  inputs[Math.floor(Math.random() * inputs.length)].checked = true;
}); 
score_submit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment