ip

Bulk IP configuration using CSV input

半腔热情 提交于 2020-04-30 12:13:43
问题 I have a CSV file with the following values for each machine I want to remotely reconfigure using static IP name,nic,ip,mask,defaultgw I was hoping to be able to reconfigure the IPs for each listed but if I have more than one machine listed the script gets stuck. This is because at the end of the first loop iteration, unless I manually do an ipconfig /flushdns on the server the script is running from, I will lose connection to the server being configured and the script just hangs leaving the

Bulk IP configuration using CSV input

↘锁芯ラ 提交于 2020-04-30 12:08:09
问题 I have a CSV file with the following values for each machine I want to remotely reconfigure using static IP name,nic,ip,mask,defaultgw I was hoping to be able to reconfigure the IPs for each listed but if I have more than one machine listed the script gets stuck. This is because at the end of the first loop iteration, unless I manually do an ipconfig /flushdns on the server the script is running from, I will lose connection to the server being configured and the script just hangs leaving the

Printing all destination IP addresses using C++

允我心安 提交于 2020-04-18 12:38:24
问题 Is there any way to print all of the IP addresses that I'm sending packets to using C++ on Windows? I've tried to sniff my traffic with WinSock2 but I had to run my code with administrator permissions. Is there any way to do it with user permissions too? 来源: https://stackoverflow.com/questions/60677807/printing-all-destination-ip-addresses-using-c

Scapy ARP mistake

三世轮回 提交于 2020-04-18 06:56:52
问题 my code right here is supposed to say "ARP who has ("192.168.178.1/24") says 192.168.178.64, but it does not work for me. It says "Ether/ARP who has ?? says ??" Here is the Code: #!/usr/bin/python3 import scapy.all as scapy def scan(ip): arp_request = scapy.ARP(pdst=ip) broadcast = scapy.Ether(dst="ff:ff:ff:ff:ff:ff") arp_request_broadcast = broadcast/arp_request print(arp_request_broadcast.summary()) scan("192.168.178.1/24") 回答1: That was fixed. Retry using the development version (on github

Scapy ARP mistake

不羁的心 提交于 2020-04-18 06:56:41
问题 my code right here is supposed to say "ARP who has ("192.168.178.1/24") says 192.168.178.64, but it does not work for me. It says "Ether/ARP who has ?? says ??" Here is the Code: #!/usr/bin/python3 import scapy.all as scapy def scan(ip): arp_request = scapy.ARP(pdst=ip) broadcast = scapy.Ether(dst="ff:ff:ff:ff:ff:ff") arp_request_broadcast = broadcast/arp_request print(arp_request_broadcast.summary()) scan("192.168.178.1/24") 回答1: That was fixed. Retry using the development version (on github

Scapy ARP mistake

跟風遠走 提交于 2020-04-18 06:56:09
问题 my code right here is supposed to say "ARP who has ("192.168.178.1/24") says 192.168.178.64, but it does not work for me. It says "Ether/ARP who has ?? says ??" Here is the Code: #!/usr/bin/python3 import scapy.all as scapy def scan(ip): arp_request = scapy.ARP(pdst=ip) broadcast = scapy.Ether(dst="ff:ff:ff:ff:ff:ff") arp_request_broadcast = broadcast/arp_request print(arp_request_broadcast.summary()) scan("192.168.178.1/24") 回答1: That was fixed. Retry using the development version (on github

VPN packet bypass

自作多情 提交于 2020-04-08 04:15:04
问题 I'm working on creating a simulated VPN (Doesn't actually create a real connection to server) to get all incoming and outgoing network bytes (information). For now i can get packets and parse them. What i get for example: IP Version:4 Header Length:20 Total Length:60 Protocol:6 Source IP:10.0.2.0 Destination IP:5.20.5.59 Hostname:clients4.google.com I would like to know what and how should i do to make connections to websites/applications (For now it doesn't connect). In this website: http:/

VPN packet bypass

久未见 提交于 2020-04-08 04:10:25
问题 I'm working on creating a simulated VPN (Doesn't actually create a real connection to server) to get all incoming and outgoing network bytes (information). For now i can get packets and parse them. What i get for example: IP Version:4 Header Length:20 Total Length:60 Protocol:6 Source IP:10.0.2.0 Destination IP:5.20.5.59 Hostname:clients4.google.com I would like to know what and how should i do to make connections to websites/applications (For now it doesn't connect). In this website: http:/

VPN packet bypass

◇◆丶佛笑我妖孽 提交于 2020-04-08 04:08:54
问题 I'm working on creating a simulated VPN (Doesn't actually create a real connection to server) to get all incoming and outgoing network bytes (information). For now i can get packets and parse them. What i get for example: IP Version:4 Header Length:20 Total Length:60 Protocol:6 Source IP:10.0.2.0 Destination IP:5.20.5.59 Hostname:clients4.google.com I would like to know what and how should i do to make connections to websites/applications (For now it doesn't connect). In this website: http:/

Why is the maximum port range 65535 in the TCP/IP Suite?

这一生的挚爱 提交于 2020-03-21 19:10:34
问题 My doubt is that - a port is just logical, so why such restriction ? Why can't I have a port of 9924593 or something like that ? 回答1: Look at the packet format for the TCP segment. The port identifiers are unsigned 16-bit integers, meaning that the largest number you can put in there is 2 16 -1 = 65535. 来源: https://stackoverflow.com/questions/36796183/why-is-the-maximum-port-range-65535-in-the-tcp-ip-suite