Jump to content

TCP Port


Recommended Posts

I have to questions:

I downloaded ph00dz's office poltergeist but i don't know what to do with the files. There are 2 "opcontrol" and "opserver". What do I do with the "opserver" file?

and

I'm trying to create a network admin tool. What TCP port should I use?

Thanks in advance.

Edited by randomboy

I got inside my house, leant back on my bed and began to think...where the hell was my roof?!?!24 hours in a day....24 beers in a case....Coincidence??

Link to comment
Share on other sites

I have to questions:

I downloaded ph00dz's office poltergeist but i don't know what to do with the files. There are 2 "opcontrol" and "opserver". What do I do with the "opserver" file?

and

I'm trying to create a network admin tool. What TCP port should I use?

Thanks in advance.

Well, opserver, would be the server, and the opcontrol would be the client. You should be able to use any port, just make sure youve got it forwareded.
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

Oh so if I want to create a network admin tool, I'll need 2 files. A server file and a control file. What needs to be in the server file?

Edited by randomboy

I got inside my house, leant back on my bed and began to think...where the hell was my roof?!?!24 hours in a day....24 beers in a case....Coincidence??

Link to comment
Share on other sites

Oh so if I want to create a network admin tool, I'll need 2 files. A server file and a control file. What needs to be in the server file?

You would have the server, on the computer you want to connect to, your pc would have the client.
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

No no, wait. In the control script I would have all the buttons and what not, so would I put exactly the same script in the server script or would I write a script to follow all the commands in the control script?

I got inside my house, leant back on my bed and began to think...where the hell was my roof?!?!24 hours in a day....24 beers in a case....Coincidence??

Link to comment
Share on other sites

No no, wait. In the control script I would have all the buttons and what not, so would I put exactly the same script in the server script or would I write a script to follow all the commands in the control script?

I thought you already got the server and client.
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

#include <GUIConstants.au3>
TCPStartup()
$ipAddress = String(InputBox("Poltergeist Control","Enter ip address to haunt:",@IPAddress1))
If $ipAddress = "" Then $ipAddress = @IPAddress1
$portAddress = 666
$connectedSocket = TCPConnect($ipAddress, $portAddress)
If @error Or $connectedSocket < 1 THEN
  MsgBox(0, "Error", "Could not connect to IP: " & $ipAddress & " and PORT: " & $portAddress)
  EXIT
endIf
GUICreate("Remote Admin", 500, 500)
GUISetState(@SW_SHOW)
GUICtrlCreateLabel("Destination IP address:", 10, 10)
$ipDestination = GUICtrlCreateInput ( @IPAddress1, 150, 10, 210, 20)
$button_1 = GUICtrlCreateButton ( "Beep", 10, 40, 80, 20)
$button_2 = GUICtrlCreateButton ( "CD Drive/open", 10, 70, 80, 20)
$button_3 = GUICtrlCreateButton ( "CD Drive/close", 10, 100, 80, 20)
$button_4 = GUICtrlCreateButton ( " Run Notepad", 10, 130, 80, 20)
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $button_1
        Beep(500, 1000)
    Case $msg = $button_2
        CDTray ( "D:", "open" )
    Case $msg = $button_3
        CDTray ( "D:", "close")
    Case $msg = $button_4
        Run("notepad.exe")
    EndSelect
Wend

This is what I have so far for the client script.

I don't know how to create a server script.

I got inside my house, leant back on my bed and began to think...where the hell was my roof?!?!24 hours in a day....24 beers in a case....Coincidence??

Link to comment
Share on other sites

#include <GUIConstants.au3>
TCPStartup()
$ipAddress = String(InputBox("Poltergeist Control","Enter ip address to haunt:",@IPAddress1))
If $ipAddress = "" Then $ipAddress = @IPAddress1
$portAddress = 666
$connectedSocket = TCPConnect($ipAddress, $portAddress)
If @error Or $connectedSocket < 1 THEN
  MsgBox(0, "Error", "Could not connect to IP: " & $ipAddress & " and PORT: " & $portAddress)
  EXIT
endIf
GUICreate("Remote Admin", 500, 500)
GUISetState(@SW_SHOW)
GUICtrlCreateLabel("Destination IP address:", 10, 10)
$ipDestination = GUICtrlCreateInput ( @IPAddress1, 150, 10, 210, 20)
$button_1 = GUICtrlCreateButton ( "Beep", 10, 40, 80, 20)
$button_2 = GUICtrlCreateButton ( "CD Drive/open", 10, 70, 80, 20)
$button_3 = GUICtrlCreateButton ( "CD Drive/close", 10, 100, 80, 20)
$button_4 = GUICtrlCreateButton ( " Run Notepad", 10, 130, 80, 20)
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $button_1
        Beep(500, 1000)
    Case $msg = $button_2
        CDTray ( "D:", "open" )
    Case $msg = $button_3
        CDTray ( "D:", "close")
    Case $msg = $button_4
        Run("notepad.exe")
    EndSelect
Wend

This is what I have so far for the client script.

I don't know how to create a server script.

Search scripts and scraps, theres a few server/client scripts.
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

What do I need to put in the server script?

Not this again D:

I quote, Search scripts and scraps, theres server scripts there you can study.

# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

Heres a run down of what you will need to do:

Client:

Make a GUI.

Get the buttons to send by TcpSEND

Server:

To make it easier, research "Reverse Connecting"

Get the server to accecpt commands with the data sent by tcpSend and TCPRecieve the text

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...