일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- 경제
- php
- Shellcode
- Javascript
- flask
- mysql
- hackerschool
- deep learning
- ChatGPT
- 인공지능
- Web
- hackthissite
- Linux
- webhacking
- 웹해킹
- 파이썬
- 리눅스
- c
- BOF 원정대
- Python
- BOF
- c++
- 딥러닝
- 러닝 스칼라
- 백엔드
- hacking
- 러닝스칼라
- Scala
- 챗GPT
- backend
- Today
- Total
목록전체보기 (212)
jam 블로그
1. mysql connect 하기. $conn = mysql_connect("mysql_host", "mysql_user", "mysql_password"); 2. mysql database 선택. mysql_select_db("my_database") 3. mysql 쿼리 실행. $query = "SELECT * FROM my_table"; mysql_query($query) 또는 배열로 결과값을 받아야 할 때. while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) 결과 값을 한줄씩 가져옵니다. (MYSQL_ASSOC는 배열의 키값이 문자일때 입니다. MYSQL_NUM은 배열의 키값이 숫자입니다. MYSQL_BOTH는 둘다 쓸수 있습니다.) 4. mysq..
Centos 6.X에 Qmail을 올렸을 시 동작하지 않는다면, 예를 들어, telnet localhost 25에 접속이 되지 않는다면, 먼저 ps aux | grep svscan으로 하여 프로세스에 올라와 있는지 확인합니다. 올라오지 않았을 경우 다음과 같이 작업해 주시면 됩니다. Centos 5.X 이하 [root@localhost]# echo "SV:345:respawn:/command/svscanboot" >> /etc/inittab [root@localhost]# pkill -1 init Centos 6.X 이상 [root@localhost]# vi /etc/init/svscan.conf start on runlevel [2345] stop on runlevel [S016] respawn exe..
ftp를 설정한 폴더를 홈페이지에 연결 하고 싶을 경우 lighttpd.conf를 고쳐야 합니다. 예를 들어 다음과 같이 폴더가 되어있다고 생각해봅시다. www/ 폴더 아래에 image 파일을 만들고 외부 폴더를 심볼릭링크를 연결합니다. ln -sf [원본의 경로] [심볼릭 링크 경로] ln -sf /tmp/image image 그다음 먼전 lighttpd를 서비스를 끕시다. killall lighttpd 그리고 conf 파일 설정을 변경합니다. vi /etc/lighttpd.conf server.modules = { mod_alias,mod_auth,mod_fastcgi}를 추가 또는 주석해제를 해줍니다. 그리고 문서 마지막에 심볼릭관련해서 정보를 넣어줍니다. alias.url = ( "/image" ..
자주 까먹어서 구글에서 찾은 다음 여기에 기록합니다. 굵은 글씨와 같이 link 태그를 사용하시면 됩니다. rel에 타입, href에는 경로를 넣어서 쓰시면 됩니다.
다음 문제의 소스입니다. /* The Lord of the BOF : The Fellowship of the BOF - dark knight - remote BOF */ #include #include #include #include #include #include #include #include #include main() { char buffer[40]; int server_fd, client_fd; struct sockaddr_in server_addr; struct sockaddr_in client_addr; int sin_size; if((server_fd = socket(AF_INET, SOCK_STREAM, 0)) == -1){ perror("socket"); exit(1); } server..