[Release] Portable Port Scanner Pro

09/01/2009 16:51 Basser#1
Portable Port Scanner v1.0
Version: v1.5.2 - Real Version
Created by: Basser(Smythe) and Michael(Zion)
Virus Scan:
[Only registered and activated users can see links. Click Here To Register...].
[Only registered and activated users can see links. Click Here To Register...].
For the entire result, check my post.
Features:
v1.5
- Fixed the crashing!
- Added a icon
- It is more stable
- Added a button to check a Private Server status
- It is now a combined with the work of Michael(Zion)! :)

v1.0
- You can now check any port!

v0.5
- Now in a form
- You can now change the IP
- All ports between 0 and 101 avaible.

v0.1
- Console
- Check localhost
- You can check Port 80
Credits:
Zion for the idea
Me/Basser/Smythe94 for creating it

-- UPDATES --

Update1:
- Changed to 1.0
- Now working on more buttons such as CO Status!

Update2:
- Changed to Version 1.5.2
- I will still update this.
- Please post New Ideas
- This is now mine and Zion's work.
09/01/2009 16:58 copz1337#2
I would find this useful if the ports went over 100 up to like 10k or more. But still nice job.
09/01/2009 16:59 Zion~#3
We shouldn't have released at the same time oh, well
Good release

Quote:
Originally Posted by copz1337 View Post
I would find this useful if the ports went over 100 up to like 10k or more. But still nice job.
Don't worry we will fix them.
09/01/2009 17:01 Basser#4
Quote:
Originally Posted by copz1337 View Post
I would find this useful if the ports went over 100 up to like 10k or more. But still nice job.
Yer, I'm working on that! :)
It can't change the int since the method I use can only handle int32 >_>
Sorry about that, next update will hopefully change this.

~hit the thanks button if this helped~
09/01/2009 17:03 PeTe Ninja#5
Wait, So What does this do? Why not just create a server status checker by trying to connect through what you set in on an ini file. I'm sure you will be able to do that.
09/01/2009 17:14 killermickle#6
Try net tools 5, Scans ports on other peoples routers using a brute force sort of method.

It has like loads of crap in it, google for the list.
09/01/2009 17:16 Basser#7
Updated, you can now add any port!
Please do not add text, that will make it crash >_>.
I know I should protect it, and I probably will, but it doesn't do anything bad if it crashes. :)

Scanning it now.
09/01/2009 17:17 killermickle#8
Quote:
Originally Posted by Smythe94 View Post
Updated, you can now add any port!
Please do not add text, that will make it crash >_>.
I know I should protect it, and I probably will, but it doesn't do anything bad if it crashes. :)

Scanning it now.
Try, if port minus port = 0, execute blah,

if not, give an error message
09/01/2009 17:19 Raveolimpia#9
What this think do?
09/01/2009 17:20 Basser#10
Quote:
Originally Posted by killermickle View Post
Try, if port minus port = 0, execute blah,

if not, give an error message
Good idea, I'll try that!

Virus scan result:

Antivir: Nothing found
ArcaVir: Nothing found
Avast: Nothing found
AVG: Nothing found
BitDefender: Nothing found
F-Prot: Nothing found
Norman: Nothing found
Rising: Nothing found
VirusBlokAda32: Nothing found
VirusBuster: Nothing found

[Only registered and activated users can see links. Click Here To Register...]
Scanned by [Only registered and activated users can see links. Click Here To Register...]
09/01/2009 17:23 Zion~#11
Bas Bas Bas, I did all of this before I released mine, like if its an invalid port ect, this is messy work XD
09/01/2009 17:35 PeTe Ninja#12
If anyone wants these codes.. Here you are.

Code:
public class frmMain : Form
{
    // Fields
    private Button btnScan;
    private IContainer components = null;
    private TextBox CreditsBox;
    private Label lblIP;
    private Label lblStart;
    private TextBox numStart;
    protected int Port;
    private TextBox txtIP;
    private TextBox txtLog;

    // Methods
    public frmMain()
    {
        this.InitializeComponent();
    }

    private void btnScan_Click(object sender, EventArgs e)
    {
        this.Port = Convert.ToInt32(this.numStart.Text);
        Cursor.Current = Cursors.WaitCursor;
        Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
        try
        {
            socket.Connect(this.txtIP.Text, this.Port);
            this.txtLog.AppendText("Port " + this.Port + " open\r\n");
        }
        catch
        {
            this.txtLog.AppendText("Port " + this.Port + " closed\r\n");
        }
        Cursor.Current = Cursors.Arrow;
    }

    protected override void Dispose(bool disposing)
    {
        if (disposing && (this.components != null))
        {
            this.components.Dispose();
        }
        base.Dispose(disposing);
    }

    private void InitializeComponent()
    {
        this.btnScan = new Button();
        this.lblIP = new Label();
        this.txtIP = new TextBox();
        this.lblStart = new Label();
        this.txtLog = new TextBox();
        this.CreditsBox = new TextBox();
        this.numStart = new TextBox();
        base.SuspendLayout();
        this.btnScan.Location = new Point(0xd0, 0xa1);
        this.btnScan.Name = "btnScan";
        this.btnScan.Size = new Size(0x11c, 0x17);
        this.btnScan.TabIndex = 0;
        this.btnScan.Text = "Custom Scan";
        this.btnScan.Click += new EventHandler(this.btnScan_Click);
        this.lblIP.AutoSize = true;
        this.lblIP.Location = new Point(15, 9);
        this.lblIP.Name = "lblIP";
        this.lblIP.Size = new Size(20, 13);
        this.lblIP.TabIndex = 3;
        this.lblIP.Text = "IP:";
        this.txtIP.Location = new Point(0x31, 6);
        this.txtIP.Name = "txtIP";
        this.txtIP.Size = new Size(0x7c, 20);
        this.txtIP.TabIndex = 2;
        this.txtIP.Text = "localhost";
        this.lblStart.AutoSize = true;
        this.lblStart.Location = new Point(14, 0x26);
        this.lblStart.Name = "lblStart";
        this.lblStart.Size = new Size(0x1d, 13);
        this.lblStart.TabIndex = 4;
        this.lblStart.Text = "Port:";
        this.txtLog.Location = new Point(0x31, 60);
        this.txtLog.Multiline = true;
        this.txtLog.Name = "txtLog";
        this.txtLog.ReadOnly = true;
        this.txtLog.ScrollBars = ScrollBars.Vertical;
        this.txtLog.Size = new Size(0x1bb, 90);
        this.txtLog.TabIndex = 9;
        this.CreditsBox.Location = new Point(0xc7, 6);
        this.CreditsBox.Multiline = true;
        this.CreditsBox.Name = "CreditsBox";
        this.CreditsBox.ReadOnly = true;
        this.CreditsBox.Size = new Size(0x123, 0x30);
        this.CreditsBox.TabIndex = 11;
        this.CreditsBox.Text = "Made by Bas";
        this.CreditsBox.TextChanged += new EventHandler(this.textBox1_TextChanged);
        this.numStart.Location = new Point(0x31, 0x1f);
        this.numStart.Name = "numStart";
        this.numStart.Size = new Size(100, 20);
        this.numStart.TabIndex = 12;
        this.numStart.Text = "80";
        base.AutoScaleDimensions = new SizeF(6f, 13f);
        base.AutoScaleMode = AutoScaleMode.Font;
        base.ClientSize = new Size(0x1f6, 0xbf);
        base.Controls.Add(this.numStart);
        base.Controls.Add(this.CreditsBox);
        base.Controls.Add(this.txtLog);
        base.Controls.Add(this.lblStart);
        base.Controls.Add(this.lblIP);
        base.Controls.Add(this.txtIP);
        base.Controls.Add(this.btnScan);
        base.Name = "frmMain";
        this.Text = "Port Scanner.NET";
        base.ResumeLayout(false);
        base.PerformLayout();
    }

    private void numStart_ValueChanged(object sender, EventArgs e)
    {
    }

    private void numStart_ValueChanged_1(object sender, EventArgs e)
    {
    }

    private void textBox1_TextChanged(object sender, EventArgs e)
    {
    }
}
Just so you can learn =]
09/01/2009 17:38 Basser#13
Quote:
Originally Posted by PeTe Ninja View Post
If anyone wants these codes.. Here you are.

Code:

Just so you can learn =]
Yes thanks for releasing a part of my source >_>.
09/01/2009 17:40 PeTe Ninja#14
Quote:
Originally Posted by Smythe94 View Post
Yes thanks for releasing a part of my source >_>.
Its fine...Nothing big released.
09/01/2009 18:05 killermickle#15
Quote:
Originally Posted by PeTe Ninja View Post
Its fine...Nothing big released.
If its his work, Its not up to you whether its insignificant enough to post.