Skip to content

Instantly share code, notes, and snippets.

@unstabler
Last active April 20, 2026 07:13
Show Gist options
  • Select an option

  • Save unstabler/bd2d196252fc0b8c81f495be381f5019 to your computer and use it in GitHub Desktop.

Select an option

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 'https://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();
@unstabler
Copy link
Copy Markdown
Author

unstabler commented Apr 20, 2026

얘네 왜 세션 안 쓰고 쿠키에다가 개인정보 갖다박지 ㅋㅋㅋ;

  • 일단 https화 하였으므로 https로 주소 변경함
  • 쿠키 변경에는 대응하지 않음. 미작동 시 쿠키값 그대로 복붙할것

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment