VisMan Posted October 31, 2013 Share Posted October 31, 2013 Hi guys. I am new to AutoIT script and i need a little explanation ) Can anyone help me to understand what each line means... ? #$Var0738 = @TempDir & "~tmp3.html" InetGet(http://www.x.com/123.txt", $Var0738, 1) $Var0739 = FileOpen($Var0738, 0) Local $Local013B[Fn01FE($Var0738)][4] For $Local0027 = 0 To Number(Fn01FE($Var0738) - 1) $Var06CB = FileReadLine($Var0739) $Var06CB = Fn01BB(0, $Var06CB, $Var06C3, 1) $Var06CD = StringSplit($Var06CB, ",") $Local013B[$Local0027][0] = StringStripWS($Var06CD[1], 2) $Local013B[$Local0027][1] = StringStripWS($Var06CD[2], 2) $Local013B[$Local0027][2] = StringStripWS($Var06CD[3], 2) $Local013B[$Local0027][3] = Number(StringStripWS($Var06CD[4], 2)) Next FileClose($Var0739) Sleep(0x0064) FileDelete($Var0738) Sleep(0x0064) $Var073A = False $Var073B = False Fn0012($Local013B, 0, 0, 0, 3) ------------------------------------------------------------------------------------ Func Fn01D4() TCPStartup() $Var06C5 = TCPNameToIP("www.x.com") $Var06C6 = TCPNameToIP("y.ru") TCPShutdown() If $Var06C5 = "x.x.x.x" And $Var06C6 = "y.y.y.y" Then $Var06C7 = @TempDir & "~tmp1.html" $Var06C8 = @TempDir & "~tmp2.html" InetGet("http://y.ru/", $Var06C7, 1) InetGet("http://www.x.com/license/1.html", $Var06C8, 1) $Var06C9 = FileOpen($Var06C7, 0) $Var06CA = FileOpen($Var06C8, 1) While 1 $Var06CB = FileReadLine($Var06C9) If @error = -1 Then ExitLoop If StringInStr($Var06CB, "чтототам: ") Then $Var06CB = Fn01BA($Var06CB, "чтототам: ", "</h1>") $Var06CB = StringSplit($Var06CB[0], "-") $Var06CC = Number($Var06CB[1] & $Var06CB[3] & $Var06CB[2]) EndIf WEnd While 1 $Var06CB = FileReadLine($Var06CA) If @error = -1 Then ExitLoop $Var06CB = Fn01BB(0, $Var06CB, $Var06C3, $Var06C4) If StringInStr($Var06CB, $Var06C2) Then $Var06CD = StringSplit($Var06CB, "|") $Var06CE = Number($Var06CD[2]) $Var06BE = StringMid($Var06CD[2], 7, 2) & "." & StringMid($Var06CD[2], 5, 2) & "." & StringMid($Var06CD[2], 1, 4) If $Var06CE < $Var06CC Then MsgBox(0, "x.com blablabla", "blablabla") $Var06C1 = True ExitLoop Else $Var06C1 = False ExitLoop EndIf Else EndIf WEnd Else MsgBox(0, Error Check file " WindowsSystem32driversetchosts") EndIf FileClose($Var06C9) FileClose($Var06CA) Sleep(0x0064) FileDelete($Var06C7) Sleep(0x0064) FileDelete($Var06C8) Sleep(0x0064) EndFunc Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 31, 2013 Moderators Share Posted October 31, 2013 VisMan,Welcome to the AutoIt forum. May I ask from where you got that script? As you obviously have no knowledge of AutoIt (not in itself a bad thing and we are ready to help you learn) and do not understand the code you obviously did not code it yourself. To my eyes it has some interesting characteristics. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Bert Posted October 31, 2013 Share Posted October 31, 2013 This script seems a bit creepy. Whenever I see something that pulls down a bit of code from the internet and then messes with the HOST file, it gives me the creeps. This script if I'm reading it right reeks of possibly being used for maulware. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now