Register for your free account! | Forgot your password?

You last visited: Today at 20:21

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

Advertisement



[Release] Portable Port Scanner Pro

Discussion on [Release] Portable Port Scanner Pro within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 09/01/2009, 18:13   #16
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Quote:
Originally Posted by killermickle View Post
If its his work, Its not up to you whether its insignificant enough to post.
Ì don't think he stole my source, he probably rewrote it.
Basser is offline  
Thanks
1 User
Old 09/01/2009, 18:15   #17
 
elite*gold: 0
Join Date: Aug 2006
Posts: 323
Received Thanks: 14
Quote:
Originally Posted by Smythe94 View Post
Ì don't think he stole my source, he probably rewritten it.
ah, my bad
killermickle is offline  
Old 09/01/2009, 19:17   #18
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Update:
- It won't crash anymore, except if you fill in a fake IP, which isn't my problem.
- I added a button to check if a CO server is on.
- I am still working on this.
Basser is offline  
Thanks
1 User
Old 09/01/2009, 19:54   #19
 
Zion~'s Avatar
 
elite*gold: 20
Join Date: Aug 2009
Posts: 1,344
Received Thanks: 650
Gratz
Zion~ is offline  
Old 09/01/2009, 20:13   #20
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Quote:
Originally Posted by Raveolimpia View Post
What this think do?
It checks if a server is online and you can scan any random port at any random IP to see if its open or closed. (It has to be open at the moment you scan, so the person has to run the program that keeps it open, e.g. WampServer.)
Basser is offline  
Thanks
1 User
Old 09/01/2009, 22:07   #21
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by killermickle View Post
If its his work, Its not up to you whether its insignificant enough to post.
If he doesn't obfuscate it its not my problem.

I used a .NET Reflector. His code isn't that hard of work so don't think it will take long. ( not that im saying you did a bad job, just telling this guy that its not much to steal )
PeTe Ninja is offline  
Old 09/02/2009, 01:39   #22
 
heartlesss's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 114
Received Thanks: 13
ive seen that my ports are closed, maybe thats why i cant use my IP's on my server, so how do i open my closed ports?
heartlesss is offline  
Old 09/02/2009, 11:25   #23
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Quote:
Originally Posted by heartlesss View Post
ive seen that my ports are closed, maybe thats why i cant use my IP's on my server, so how do i open my closed ports?
This is off-topic, but add my msn , and I'll do what I can.

~9 views, and only 4 thanks, please hit the thank button, It took some time~

@Pete, I don't think its respectfull to reflect someone's released .exe and than release the source on the same forum, however, this is my opinion, I've protected it this time, I didn't except anyone to do that though.
Basser is offline  
Thanks
1 User
Old 09/02/2009, 23:08   #24
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
decompiled. Thanks
~Yuki~ is offline  
Old 09/02/2009, 23:30   #25
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
Quote:
Originally Posted by Smythe94 View Post
This is off-topic, but add my msn , and I'll do what I can.

~9 views, and only 4 thanks, please hit the thank button, It took some time~

@Kinshi, I don't think its respectfull to reflect someone's released .exe and than release the source on the same forum, however, this is my opinion, I've protected it this time, I didn't except anyone to do that though.
"@Kinshi" ? What did I do? I haven't even posted in this thread (till this post).
kinshi88 is offline  
Old 09/02/2009, 23:33   #26
 
elite*gold: 0
Join Date: Aug 2006
Posts: 323
Received Thanks: 14
About it crashing with a fake IP, does it have a timeout function.
And does it split the IP and check all the values are <= 255?
killermickle is offline  
Old 09/03/2009, 02:30   #27
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Yuki ill msg u on msn about this. Another update 2morrow, or a new release.
Basser is offline  
Old 09/03/2009, 04:04   #28
 
elite*gold: 0
Join Date: Nov 2008
Posts: 44
Received Thanks: 6
I thought that, for a socket to connect, there would have to be a server listening on the end of the port and address specified. If so, is "Port Scanner" really a valid name for this program?

Your program wouldn't for me (for reasons I know of), so I wrote one in Java:
Code:
/*
 * @ServerStatusChecker.java
 * 
 * GUI which allows the user to input an Ip address and port.
 * 
 * This program will notify the user if the server on the given
 * address and port is listening.
 */

package serverstatuschecker;

import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.Socket;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;

/**
 * @author Rab
 */
public class ServerStatusChecker 
        extends JFrame 
        implements ActionListener {
    
    public ServerStatusChecker() {
        super("Server Status Checker");
        initComponents();
    }
    
    private void initComponents() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        addrLabel = new JLabel("Ip Address:");
        addrField = new JTextField();
        portLabel = new JLabel("Port:");
        portField = new JTextField();
        doItButton = new JButton("Do It!");
        doItButton.addActionListener(this);
        setLayout(new GridLayout(5, 1));
        add(addrLabel);
        add(addrField);
        add(portLabel);
        add(portField);
        add(doItButton);
        pack();
    }
    
    
    /**
     * Checks to see if the a server on the specified Ip Address and port
     * is listening for connections.
     *
     * @param addr the Ip address of the server
     * 
     * @param port the port of the server
     *
     * @return a boolean dependent on whether or not the server on the 
     * specified Ip address and port is listening
     */
    public boolean isListening(String addr, int port) {
        Socket socket = null;
        try {
            socket = new Socket(addr, port);
            return true;
        } catch (Exception ex) {
            return false;
        }
    }

    /**
     * Checks an Ip Address for validity.
     *
     * @param addr Ip Address to check
     *
     * @return a boolean depending on whether or not the specified Ip Address
     * is a valid one
     */
    private boolean isValidIp(String addr) {
        String[] parts = addr.split("\\.");
        if(parts.length != 4) {
            return false;
        }
        for(String s:parts) {
            int v;
            try {
                v = Integer.parseInt(s);
            } catch(NumberFormatException ex) {
                return false;
            }
            if(v < 0 || v > 255) {
                return false;
            }
        }
        return true;
    }

    /**
     * Checks a port for validity.
     *
     * @param port the port to validate
     *
     * @return returns boolean depending on whether or not the specified port
     * is a valid one
     */
    private boolean isValidPort(int port) {
        return port >= 0 && port <= 65535;
    }

    public void actionPerformed(ActionEvent e) {
        String addr = addrField.getText();
        int port;
        try {
            port = Integer.parseInt(portField.getText());
        } catch(NumberFormatException ex) {
            JOptionPane.showMessageDialog(this, "There was an error.\n" +
                    "Please check to make sure that the Ip Address and Port\n" +
                    "are correct and try again.",
                    "ERROR", JOptionPane.ERROR_MESSAGE);
            return;
        }
        if(isValidIp(addr) && isValidPort(port)) {
            if(isListening(addr, port)) {
                JOptionPane.showMessageDialog(this, "This server is online.", "Server Status", JOptionPane.INFORMATION_MESSAGE);
            } else {
                JOptionPane.showMessageDialog(this, "This server is offline.", "Server Status", JOptionPane.INFORMATION_MESSAGE);
            }
        } else {
            JOptionPane.showMessageDialog(this, "There was an error.\n" +
                    "Please check to make sure that the Ip Address and Port\n" +
                    "are correct and try again.",
                    "ERROR", JOptionPane.ERROR_MESSAGE);
        }
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {

            public void run() {
                new ServerStatusChecker().setVisible(true);
            }
        });
    }

    private JLabel addrLabel, portLabel;
    private JTextField addrField, portField;
    private JButton doItButton;
}
It is probably better and more reliable than yours, but I do not know that for a fact.
Attached Files
File Type: zip ServerStatusChecker.zip (17.8 KB, 1 views)
Rab is offline  
Old 09/03/2009, 07:45   #29
 
elite*gold: 0
Join Date: Aug 2006
Posts: 323
Received Thanks: 14
Quote:
Originally Posted by Rab View Post
I thought that, for a socket to connect, there would have to be a server listening on the end of the port and address specified. If so, is "Port Scanner" really a valid name for this program?

Your program wouldn't for me (for reasons I know of), so I wrote one in Java:
If you're going to code it in Java, you may aswell use PHP.

Code:
mysql_connect ("127.0.0.1", "root", "password");
mysql_select_db ("coproj");
$con = fsockopen($host, $port, $errno, $errstr, 1);
error_reporting(0);
if($con)
	echo 'Server Status:&nbsp;<font color="green"><b>Online</b></font>';
else
	echo 'Server Status:&nbsp;<font color="red"><b>Offline</b></font>';
killermickle is offline  
Old 09/03/2009, 11:15   #30
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Please stop posting new scripts, this is a release not a question.
Basser is offline  
Reply


Similar Threads Similar Threads
Portable Goguardian V2 Public Release
06/15/2011 - General Gaming Discussion - 28 Replies
So I have decided to publicly release V2 of my Portable Goguardian. I'm not big on PvP hacks or hacks which can ruin another's fun, but the PG is completely personal and does not affect another player's game experience. The PG gives you access to the goguardian menu anywhere within the game world. This is extremely useful when hunting or leveling as you can leave most of your ammo in the Gogu, and drag it into your inventory even when you're in the boss room of Regants. The PG is a...
[Release] Port Scanner v1.0 FREE
08/22/2010 - Coding Releases - 13 Replies
Hallo Elitepvpers Heute release ich meinen Port Scanner v1.0 FREE. Infos zur Premium Version gibts unten. Dieses Tool Scannt von der eingegebenen IP die Ausgewählten Ports. Folgende Features sind euch in der FREE Version sicher : -Auswählen der IP -Auswählen von welchem Port -Auswählen bis zu welchem Port -Schönes Design -Farbig, wenn Port offen ist
[Release]Portable Server Status Checker
09/09/2009 - CO2 PServer Guides & Releases - 34 Replies
Reasons I released this: 1) I know there are lots of people who have their servers in beta testing ect, and maybe you might not have a website as yet, or a server status page. 2) I was bored. So, by the Config.ini is set to: IP=127.0.0.1 Port=80
[RELEASE]Port Scanner by MarcoPolo
07/01/2009 - Metin2 Private Server - 25 Replies
Ich hab mir mal vorgenommen, euch ein tool zu proggen, was euch das portscannen ermöglicht Ich werde hier weder URL's noch Port's posten oder in mein Programm einbetten die müsst ihr schon selber rausfinden Installation : Downloadet euch die Datei im anhang ( Port Scanner by MarcoPolo.rar ) Entpackt das Archiv in irgendein verzeichniss startet die Check IP & Port by MarcoPolo.exe



All times are GMT +2. The time now is 20:21.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.