Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 22:03

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Hilfe bei Spammbot

Discussion on Hilfe bei Spammbot within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Herzlos95's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 72
Received Thanks: 51
Hilfe bei Spammbot

Hi Luete, habe heute mal mit hilfe von Youtube einen Spambot erstellt, den man Starten und schließen kann, jedoch nicht Pausieren.
Nun habe ich geschafft das der Bot Pausiert wird, jedoch muss ich die Taste zum Pausieren 2 mal drücken...

Könnte mir vieleicht sagen wo mein Fehler ist?

HotKeySet ("{F1}", "start" )
HotKeySet ("{ESC}", "stop" )
HotKeySet("{F2}", "pause")

$text = InputBox ( "Spambot", "Was willst du spammen?")
MsgBox (0, "Funktionen","Bitte Chatfenster wählen und..." & @CRLF & "F1 = Bot starten" & @CRLF & "ESC = Bot beenden!" & @CRLF & "2xF2 = Pause!" )

Global $Paused

While 1
sleep ( 100 )
WEnd

func start ()
while 1
send ($text)
send ( "{Enter}" )
sleep ( 100 )
WEnd
EndFunc

func stop ()
Exit
EndFunc

Func pause ()
$Paused = NOT $Paused
While $Paused
sleep(0)
WEnd
EndFunc

Freue mich über jede antwort.

MfG Herzlos95
Herzlos95 is offline  
Old 07/05/2012, 00:07   #2
 
elite*gold: 464
Join Date: Dec 2010
Posts: 3,998
Received Thanks: 3,909
Benutz das nächste mal bitte [!code] [/!code] für den Source ( ohne die "!").

Code:
HotKeySet ("{F6}","Start")
HotKeySet ("{F7}","Pause")
HotKeySet ("{F8}","Ende")

$Text = InputBox ("****************","la li lu","du di du")
$Intervall = InputBox("chill out :D","Please type in the time (in milliseconds")
MsgBox (0,"Hotkeys","F6 = Start"&@CRLF&"F7 = Pause"&@CRLF&"F8 = Ende")
Pause()

Func Start()
    While 1
        Send ($Text)
        Send ("{ENTER}")
        Sleep($Intervall)
    WEnd
EndFunc

Func Pause()
    While 1
        Sleep(10)
    WEnd
EndFunc

Func Ende()
    Exit
EndFunc
hab ihn mal ein bisschen umgebaut
Dr.Toni-old is offline  
Old 07/05/2012, 13:58   #3
 
CantShutMyMouth's Avatar
 
elite*gold: 0
Join Date: Apr 2012
Posts: 380
Received Thanks: 163
What am i doing wrong here???

PHP Code:

GUICreate
("Spammer",280,50,100,100)
$Text GUICTRLCreateInput("",5,2,80,20)
$Intervall GUICtrlCreateInput("",191,2,80,20)
$Start GUICtrlCreateButton ("START",10,30,90,20)
$Stop GUICTRLCreateButton("PAUSE",100,30,90,20)
$Exit GUICTRLCreateButton("Exit",191,30,90,20)
GUICTRLCreateLabel("<-Text",85,2,90,20)
GUICTRLCreateLabel("Intervall->",140,2,50,20)
While 
1
   GUIsetState 
(@SW_SHOW)
   
$nMsg GUIGetMsg()
       Switch 
$nMsg
Case $Start
   Start
()
Case 
$Stop
   Pause
()
Case 
$Exit
   Ende
()
EndSwitch
WEnd

Global $Paused 

Func Start
()
    While 
1
        Send 
($Text)
        
Send ("{ENTER}")
        
Sleep($Intervall)
    
WEnd
EndFunc

Func Pause
()
    
$Paused NOT $Paused
While $Paused
sleep
(0)
WEnd
EndFunc

Func Ende
()
    Exit
 
EndFunc 

Thanks for the code you 2,but i tried to make it GUI.. but .when started it sends only 3 at 1 milisecond intervall.....do someone knows why??
CantShutMyMouth is offline  
Old 07/05/2012, 14:14   #4
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
you should never use more than one infinite loop, since each one, blocks the others...

a simple rework of your script could look like this:
Code:
Dim $run = False, $timer, $sleepTime

GUICreate("Spammer", 280, 50, 100, 100)
$Text = GUICtrlCreateInput("", 5, 2, 80, 20)
$Intervall = GUICtrlCreateInput("", 191, 2, 80, 20)
$Start = GUICtrlCreateButton("START", 10, 30, 90, 20)
$Stop = GUICtrlCreateButton("PAUSE", 100, 30, 90, 20)
$Exit = GUICtrlCreateButton("Exit", 191, 30, 90, 20)
GUICtrlCreateLabel("<-Text", 85, 2, 90, 20)
GUICtrlCreateLabel("Intervall->", 140, 2, 50, 20)
GUISetState(@SW_SHOW)

While 1
	Switch GUIGetMsg()
		Case $Start
			$run = True
			$sleepTime = GUICtrlRead($Intervall)
		Case $Stop
			$run = False
		Case $Exit
			Exit
	EndSwitch
	If $run And TimerDiff($timer)>$sleepTime Then
		Send($Text)
		Send("{ENTER}")
		$timer = TimerInit()
	EndIf
WEnd
lolkop is offline  
Old 07/05/2012, 14:21   #5
 
CantShutMyMouth's Avatar
 
elite*gold: 0
Join Date: Apr 2012
Posts: 380
Received Thanks: 163
Thanks lolkop...it still sends only "3"but i modified a bit:

PHP Code:
Dim $run False$timer$sleepTime

GUICreate
("Spammer"28050100100)
$Text GUICtrlCreateInput(""528020)
$Intervall GUICtrlCreateInput(""19128020)
$Start GUICtrlCreateButton("START"10309020)
$Stop GUICtrlCreateButton("PAUSE"100309020)
$Exit GUICtrlCreateButton("Exit"191309020)
GUICtrlCreateLabel("<-Text"8529020)
GUICtrlCreateLabel("Intervall->"14025020)
GUISetState(@SW_SHOW)

While 
1
    
Switch GUIGetMsg()
        Case 
$Start
            $run 
True
            $Sender 
GUICTRLRead ($Text)
            
$sleepTime GUICtrlRead($Intervall)
        Case 
$Stop
            $run 
False
        
Case $Exit
            
Exit
    EndSwitch
    If 
$run And TimerDiff($timer)>$sleepTime Then
        Send
($Sender)
        
Send("{ENTER}")
        
$timer TimerInit()
    EndIf
WEnd 
CantShutMyMouth is offline  
Reply


Similar Threads Similar Threads
[Release]S4 league spammbot/chat spammbot
09/02/2010 - S4 League Hacks, Bots, Cheats & Exploits - 9 Replies
hay ich release hier einfach ma meinen spammbot er ist mit visual basic geschreiben nein ich habe ihn nicht gelecht virus total:VirusTotal - Free Online Virus, Malware and URL Scanner virus total s4 league spammbot:VirusTotal - Free Online Virus, Malware and URL Scanner viel spass damit bitte keine unflätigen kommis http://sig.s4project.net/8fabc7711eed5939dd99a666 297041b0c5716ef0.jpg http://www.bilderhoster.at/upload/yvnvh1269956366 .jpg für die ganz schlauen lad ich jetzt die sln hoch
[Release]S4 league spammbot/chat spammbot
09/02/2010 - S4 League Hacks, Bots, Cheats & Exploits - 2 Replies
ay ich release hier einfach ma meinen spammbot er ist mit visual basic geschreiben nein ich habe ihn nicht gelecht virus total:VirusTotal - Free Online Virus, Malware and URL Scanner virus total s4 league spammbot:VirusTotal - Free Online Virus, Malware and URL Scanner viel spass damit bitte keine unflätigen kommis http://sig.s4project.net/8fabc7711eed5939dd99a666 297041b0c5716ef0.jpg http://www.bilderhoster.at/upload/yvnvh1269956366 .jpg
[HILFE]Brauche hilfe für meinen spammbot
05/08/2010 - AutoIt - 40 Replies
hi, ich habe mir vorgenommen mir nen spammbot zu erstellen ....... aber nicht wie alle andren sondern nen GUI^^ da ich aber ein anfänger bin (wie meine zile schon aussagen) brauche ich dabei hilfe! mein problem: Immer wenn ich auf START klicke schreibt der nicht das reein was in der textzeile steht sonder schreibt IMMER die zahl 4 rein -.- hier mein KOMPLETTER script: #include <GUIConstants.au3> #Region ### START Koda GUI section ###...



All times are GMT +1. The time now is 22:04.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.