const CONFIG = {
DEPOSIT_ADDRESS: "", // 본인 입금 주소
COIN_NAME: "", // 코인명 (예: BTC, ETH, G 등)
AMOUNT: 0, // 수량
SOURCE: "", // 전송지 (예: 메타마스크, 바이낸스 등)
};
const TARGET_TXIDS = [
// 누락된 TXID 목록 입력
// "0x...",
// "0x...",
];
// ========== 아래는 수정 불필요 ==========
function getCsrfToken() {
const c = document.cookie.split('; ').find(r => r.startsWith('csrf_xcoin_name='));
return c ? c.split('=')[1] : null;
}
async function submitInquiry(txid, i, total) {
const csrf = getCsrfToken();
if (!csrf) { console.error('❌ 로그인 필요'); return false; }
const content = - 가상자산 종류 : ${CONFIG.COIN_NAME}\n- 신청수량 : ${CONFIG.AMOUNT}\n- 오입금 TXID : ${txid}\n- 환불받으시고자 하는 주소 : ${CONFIG.DEPOSIT_ADDRESS}\n- 전송지 : ${CONFIG.SOURCE};
const body = new URLSearchParams({ csrf_xcoin_name: csrf, field: "83", use_form_yns: "80|81|82|83|52", unlistedType: "6", unlistedCoinName: CONFIG.COIN_NAME, unlistedAdress: "", outCoinQty: "", txid: "", title: "입출금 점검 내 입금 건 누락.", content, privacyAgreement: "on" });
try {
const resp = await fetch("/customer_support/question_save", { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body: body.toString(), credentials: "include" });
const text = await resp.text();
if (text.includes('login')) { console.error([${i}/${total}] ❌ 로그인 필요); return false; }
console.log([${i}/${total}] ✅ ${txid.slice(0, 20)}...);
return true;
} catch (e) { console.error([${i}/${total}] ❌ ${e.message}); return false; }
}
async function run() {
if (!CONFIG.DEPOSIT_ADDRESS !CONFIG.COIN_NAME !CONFIG.AMOUNT || !CONFIG.SOURCE) {
console.error("❌ CONFIG 설정을 모두 입력하세요");
return;
}
if (!TARGET_TXIDS.length) {
console.error("❌ TARGET_TXIDS에 TXID를 입력하세요");
return;
}
console.log("🚀 빗썸 입금 누락 문의 등록");
console.log(📋 대상: ${TARGET_TXIDS.length}건);
TARGET_TXIDS.forEach((tx, i) => console.log( ${i + 1}. ${tx}));
let success = 0, failed = 0;
for (let i = 0; i < TARGET_TXIDS.length; i++) {
if (await submitInquiry(TARGET_TXIDS[i], i + 1, TARGET_TXIDS.length)) success++; else failed++;
if (i < TARGET_TXIDS.length - 1) await new Promise(r => setTimeout(r, 2000));
}
console.log(\n✅ 완료! 성공: ${success}, 실패: ${failed});
}
run();
빗썸 따발 누락됐으면 한꺼번에 문의 등록해버리는거임.
따리꾼만 쓰세요 ㅋㅋㅋㅋㅋ
되는지는 한개만 테스트해봐서 여러건은 모르겠네.
