Apollo89 · Tag

sql injection

관련 글을 최신순으로 정리했습니다.

5 articles
Development

보호된 글: [OverTheWire] Natas Level17

[OverTheWire] Natas Level17 http://natas17.natas.labs.overthewire.org/ id : natas17 pw : 8Ps3H0GWbn5rd9S7GmAdgQNdkhPkq9cw Level15 와 같이 중복체크를 하는 프로그램이다.. 소스를 보자 <? /* CREATE TABLE `users` ( `username` varchar(64) DEFAULT NULL, `password` varchar(64) DEFAULT NULL ); */ if(array_key_exists("username", $_REQUEST)) { $link = mysql_connect('localhost', 'natas17', '<censored>');…

읽어보기 →
Development

보호된 글: [OverTheWire] Natas Level15

[OverTheWire] Natas Level15 http://natas15.natas.labs.overthewire.org/ id : natas15 pw : AwWj0w5cvxrZiONgZ9J5stNVkmxdk39J username 중복체크를 하는 부분으로 보인다.. 소스를 확인해보면.. <? /* CREATE TABLE `users` ( `username` varchar(64) DEFAULT NULL, `password` varchar(64) DEFAULT NULL ); */ if(array_key_exists("username", $_REQUEST)) { $link = mysql_connect('localhost', 'natas15', '<censored>'); mysql_select_db('natas15',…

읽어보기 →
Security

Hack The Packet 2014 예선(2014 HTP_prequal)

  Hack The Packet 2014 예선(2014 HTP_prequal) 올해도 30만원 정도 하는 POC 티켓을 노리고 HTP에 도전했다.. 하지만 안타깝게 9위로 본선진출만 하고 5위권내 진입은 실패했다..ㅠㅠ 그래도 문제를 풀었던 후기를 적어보고자 한다.. PCAP 파일 다운로드(Google Drive) Zip 파일 암호 : 2o14H@CKTH2P@cK2T L1-K : 엘리스는…

읽어보기 →
Development

보호된 글: Codegate 2013 Web 100

  웹문제다.. 일단 login_check.phps 소스가 있으니, 소스부터 보자. <?php if (!isset($_POST['user_id']) || !isset($_POST['password'])){ die("parameter error"); } $flag = "?"; $id = $_POST['user_id']; $ps = $_POST['password']; mysql_connect("db","id","pw"); mysql_select_db("db"); $id = mysql_real_escape_string($id); $ps = mysql_real_escape_string($ps); $ps = hash("whirlpool",$ps, true); $result = mysql_query("select user_id from…

읽어보기 →
Development

보호된 글: HolyShield 2013 writeup – findakey(100)

  문제 : [하카드@holyshield:~$] cat findakey findakey(100) Find a key http://210.126.48.192/holy_web_001/ admin 게시판에 key를 읽는 것이 문제로 보인다. 처음에는 공격 포인트를 잡지 못해 엄청 헤맸다. file download와 sql injection도 많이 시도해보았고, 파라미터 변조도 이리저리 계속 시도 해보았지만 성공하지 못했다. 그러다가 힌트가 download라고…

읽어보기 →