Speedo0o commited on
Commit
a0548bd
·
verified ·
1 Parent(s): 71560aa

Update 1.py

Browse files
Files changed (1) hide show
  1. 1.py +15 -0
1.py CHANGED
@@ -3477,6 +3477,21 @@ class UltimateIntegratedEngine:
3477
 
3478
  async def _attack_worker(self, worker_id: int):
3479
  try:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3480
  if worker_id == 0 and self.use_js_bypass:
3481
  try:
3482
  self._log("[JS] Warming up with Playwright clearance...", "INFO")
 
3477
 
3478
  async def _attack_worker(self, worker_id: int):
3479
  try:
3480
+ if worker_id == 0:
3481
+ try:
3482
+ ip = socket.gethostbyname(self.host)
3483
+ self._log(f"[DNS] Resolved {self.host} -> {ip}", "INFO")
3484
+ except Exception as e:
3485
+ self._log(f"[DNS] Resolution failed: {e}. Trying fallback...", "ERROR")
3486
+ import subprocess
3487
+ try:
3488
+ ip = subprocess.check_output(["nslookup", self.host]).decode().split()[-1]
3489
+ self._log(f"[DNS] Fallback resolved to {ip}", "INFO")
3490
+ except Exception:
3491
+ self._log("[DNS] FATAL: Cannot resolve host. Attack will fail.", "ERROR")
3492
+ self.stop_requested = True
3493
+ return
3494
+
3495
  if worker_id == 0 and self.use_js_bypass:
3496
  try:
3497
  self._log("[JS] Warming up with Playwright clearance...", "INFO")