![]() ![]() |_http-server-header: Microsoft-HTTPAPI/2.0ģ3333/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) |_ssl-date: T02:24:45+00:00 0s from scanner time.Ĩ089/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) Nic_configs=wmi.WMI().Win32_NetworkAdapterConfiguration(IPEnabled=True)īut my question now is, how do I know if I am safe to proceed with my FTP operation? How do I know that if the internet connection is live after I have enabled the DHCP?įor the FTP operation, I am thinking of using ftplib.įYI: I am on windows XP SP3 32bits, python 2.7.Nmap Results # Nmap 7.92 scan initiated Thu Aug 25 22:23:17 2022 as: nmap -T5 -p21,22,135,139,3389,8089,33333 -A -oA scan-all -Pn 192.168.179.99Ģ2/tcp open ssh OpenSSH for_Windows_8.1 (protocol 2.0) Thanks to a post on SO which suggested to use WMI module, I managed to change the IP configuration using WMI module like this: import wmi Change the IP configuration back to original setting.Connect to FTP site and download the file to a location.Change the IP configuration of windows automatically.Thus thinking of creating a Python Script that will ![]() ![]() Change the IP configuration back to original static IP and subnet mask.Connect back the lan cable of private network.Then disconnect the lan cable that has internet access.Open FileZilla(a FTP program) and connect it to the FTP site, select a file(a known file name) and download to a specfic location on the harddisk.Change the IP configuration from static IP to detect automatically in the windows network configuration.Connect the laptop to the lan cable that has internet access.Disconnect the lan cable of the private network from Laptop. ![]() Quite often, I am required to do the following: I have a laptop which has a static IP (193.2.1.8)and is part of a small local private network without internet access. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |