WEB crazy question regarding ports/php

Discussion in 'OT Technology' started by Ricky, Sep 24, 2008.

  1. Ricky

    Ricky █▄ █▄█ █▄ ▀█▄

    Joined:
    Jun 17, 2005
    Messages:
    38,766
    Likes Received:
    6
    Okay i'll try my best to explain this shit.

    So lets say if you're trying to check if i port is open. You'll run something along the lines of a fsockopen with the port.

    Ok so in order for it to actually check, there needs to be a program or something, requesting it. So lets say if i setup teamspeak or some shit, and it requests port 8000.

    Once it's requestin g port 8000, i can send the fsockopen to the port and it'll say it connect (thus it's open).

    Now if i dont turn on teamspeak, and try to send an fsockopen it'll show it closed.. correct.

    Now instead of having a program, such as teamspeak running in order to check, is there some sort of php script i can have, which would be requesting to use a port?

    Im sure there's a simple solution, i jsut have no idea :o
     
  2. White Stormy

    White Stormy Take that, subspace!

    Joined:
    Sep 17, 2002
    Messages:
    85,489
    Likes Received:
    70
    Location:
    Sparkopolis
    kill yourself

    /solution
     
  3. Ricky

    Ricky █▄ █▄█ █▄ ▀█▄

    Joined:
    Jun 17, 2005
    Messages:
    38,766
    Likes Received:
    6
    :wtc:

    Im sure theres some server side command which can execute this :o

    fuck i wish i knew more about this shit :o
     
  4. whup

    whup I wish you had children and.. so that I could step

    Joined:
    Feb 12, 2007
    Messages:
    1,603
    Likes Received:
    0
  5. Cojones

    Cojones Guest

    or jsut run terminal
     
  6. Ricky

    Ricky █▄ █▄█ █▄ ▀█▄

    Joined:
    Jun 17, 2005
    Messages:
    38,766
    Likes Received:
    6

Share This Page