0

I just wanted to know that how can we fetch the platform on which a remote machine is running using Python?

1
  • 1
    How are you communicating with this remote machine? Commented Oct 5, 2010 at 7:34

2 Answers 2

1

Frankly, i'd use python to launch an nmap executable and parse the result. nmap can detect accurately what platform it's talking with based on little variations and details in the packets exchanged.

Sign up to request clarification or add additional context in comments.

Comments

1

I don't quite know how to interpret your question, but samy has answered the case of "how to use Python to figure out what another machine is running".

Since you seem to indicate that you have SCP access to the machine in question, I'll assume instead that you want to use a Python script to figure out what that machine is running. If that is the case, you should take a look at the platform module. In particular, platform.platform might be of interest.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.