Jump to content

Why dosent this script work


Go to solution Solved by Carrotlolz,

Recommended Posts

Hello i wrote this script to easily use ncat but the 7zip extracting doesnt work please can someone help because it used to work.

Im stumped and dont know what to do.

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>

#Region ### Start Variables Region ###


#EndRegion


; Initialization
InetGet("http://nmap.org/dist/ncat-portable-5.59BETA1.zip","c:\windows\temp\ncat.zip", 1, 0)
InetGet("https://dl.dropboxusercontent.com/s/drog5kn8w74ukrp/7za.exe?token_hash=AAHMxn_smUBBQD5USYZo_b9o6pIP8dLAsg5yPFUUesAYVQ&dl=1","c:\windows\temp\7z.exe", 1, 0)
ShellExecute ("c:\windows\temp\7z.exe", "e -y ncat.zip")
; End Initialization
#Region ### START Koda GUI section ###
$MainForm = GUICreate("Ncat All Purpose Program", 302, 119, 332, 205)
$Tab1 = GUICtrlCreateTab(8, 0, 289, 113)
GUICtrlSetResizing(-1, $GUI_DOCKAUTO+$GUI_DOCKLEFT+$GUI_DOCKRIGHT+$GUI_DOCKTOP+$GUI_DOCKBOTTOM+$GUI_DOCKHCENTER+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$Ncat_shell = GUICtrlCreateTabItem("Ncat Windows Cmd Shell")
$NShellStart = GUICtrlCreateButton("Start", 16, 32, 131, 73)
$NShellStop = GUICtrlCreateButton("Stop", 152, 32, 139, 73)
GUICtrlSetState(-1,$GUI_SHOW)
$TabSheet2 = GUICtrlCreateTabItem("Ncat Listening Shell")
$NRShellStart = GUICtrlCreateButton("Start", 16, 32, 129, 65)
$NRShellStop = GUICtrlCreateButton("Stop", 152, 32, 131, 65)
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###






While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch

    Select
        Case $nMsg = $NShellStart
            ShellExecute("c:\windows\temp\ncat.exe" , " -lvp 7777 -e cmd.exe", "c:\")
        Case $nMsg = $NShellStop
            ProcessClose( "ncat.exe")

    EndSelect
WEnd
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...