Feb 28, 2013 08:03 PM
(This post was last modified: Mar 3, 2013 09:02 PM by iGnite.)
pyThrow
Someone requested a Skype spammer, and so I made one today on my spare time. It doesn't clean up after itself, and all files are stored in your 'Temp' directory; So deleting them shouldn't be difficult.
Screenshot: http://www.forumrunner.netau.net/files/pyThrow.jpg
EDIT: I've fixed some bugs;
- misspelled argument during function call
- misspelled object in script 'installmod.vbs'
If any other bugs are found please report them below.
Code
''' pyThrow - Throw spam @ skype whores in the form of py.
@echo off & cd %temp% & cls & if not /%1/==// goto :%1
title pyThrow - Press Ctrl+C to exit & color 9f
call %0 getpy & call %0 installpy & call %0 getmod
call %0 installmod & call %0 pyThrow & goto :eof
:getpy
if exist "getpy.vbs" (del /q /f "getpy.vbs" > nul)
if exist "python.msi" (del /q /f "python.msi" > nul)
(
echo function fetch^(file, drop^)
echo set xmlhttp = createobject^("msxml2.xmlhttp.3.0"^)
echo xmlhttp.Open "get", file, false
echo xmlhttp.send^(^)
echo if xmlhttp.status = 200 then
echo set stream = createobject^("adodb.stream"^)
echo stream.open
echo stream.type = 1
echo stream.write xmlhttp.responsebody
echo stream.position = 0
echo stream.savetofile drop
echo stream.close
echo set stream = nothing
echo end if
echo set xmlhttp = nothing
echo end function
echo fetch "http://python.org/ftp/python/2.7.3/python-2.7.3.msi", "python.msi"
) > "getpy.vbs" & cscript /nologo "getpy.vbs" & goto :eof
:installpy
msiexec /i python.msi /qn targetdir="%temp%"
goto :eof
:getmod
if exist "getmod.vbs" (del /q /f "getpy.vbs" > nul)
if exist "skype4py.zip" (del /q /f "skype4py.zip" > nul)
(
echo function fetch^(file, drop^)
echo set xmlhttp = createobject^("msxml2.xmlhttp.3.0"^)
echo xmlhttp.Open "get", file, false
echo xmlhttp.send^(^)
echo if xmlhttp.status = 200 then
echo set stream = createobject^("adodb.stream"^)
echo stream.open
echo stream.type = 1
echo stream.write xmlhttp.responsebody
echo stream.position = 0
echo stream.savetofile drop
echo stream.close
echo set stream = nothing
echo end if
echo set xmlhttp = nothing
echo end function
echo fetch "http://pypi.python.org/packages/source/S/Skype4Py/Skype4Py-1.0.32.1.zip", "skype4py.zip"
) > "getmod.vbs" & cscript /nologo "getmod.vbs" & goto :eof
:installmod
if exist "skype4py" (rd /s /q "skype4py" > nul)
(
echo set fso = createobject^("scripting.filesystemobject"^)
echo if not fso.folderexists^(".\skype4py"^) then
echo fso.createfolder^(".\skype4py"^)
echo end if
echo zipfile = fso.getabsolutepathname^(".\skype4py.zip"^)
echo outputfldr = fso.getabsolutepathname^(".\skype4py"^)
echo set objshell = createobject^("shell.application"^)
echo set filesinzip=objshell.namespace^(zipfile^).items
echo objshell.namespace^(outputfldr^).copyhere^(filesinzip^)
echo set fso = nothing
echo set objshell = nothing
) > "installmod.vbs" & cscript /nologo "installmod.vbs"
python skype4py\skype4py-1.0.32.1\setup.py install
goto :eof
:pyThrow
if exist "pyThrow.py" (del /q /f "pyThrow.py" > nul)
copy /y %0 "pyThrow.py" > nul
echo Contact List:
python pyThrow.py
goto :eof
'''
# fucking imports are fucking...
import sys
from Skype4Py import Skype
try:
# nipple pinching skype...
skype = Skype()
if not skype.Client.IsRunning:
skype.Client.Start()
# hooking skype client...
skype.Attach()
# display contact list...
for finger in skype.Friends:
print '\n [*]', finger.OnlineStatus, '-', finger.FullName
# declare variables...
sendto = raw_input("\n - Username: ")
message = raw_input(" - Message: ")
# spam...
while 0 < 1:
skype.SendMessage(sendto, message)
except:
sys.exit(0)![[Image: ed8URKg.jpg]](https://i.imgur.com/ed8URKg.jpg)


