Sponsored Content
Full Discussion: Find out my gateway ips?
Special Forums IP Networking Find out my gateway ips? Post 302559862 by Corona688 on Wednesday 28th of September 2011 10:40:30 AM
Old 09-28-2011
Neighbors don't exactly advertise themselves.

On a local network, you can use tons of ARP who-has packets to scan the entire subnet range. Anything with an IP answers to ARP.

On a WAN you're stuck with ping, and things don't have to answer that.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Restricting Telnet to IPs

Dear Experts, Is it possible to restrict telnet to specific ips in Digital Unix Thanks (4 Replies)
Discussion started by: geraldwilson
4 Replies

2. Cybersecurity

Restricting Telnet to IPs

Dear Experts, Is there a way to restrict telnet to specific IPs Thanks (6 Replies)
Discussion started by: geraldwilson
6 Replies

3. Solaris

system Fake IPs

hi all ; I am using solaris 8 over SPARC . i was given the role to administer a webmail server running Iplanet 4.2 i was told also that this server is running a website . this server has 2 fake IPs . My question is how i can know these fake IPs and how they are mapped . cheers (2 Replies)
Discussion started by: ppass
2 Replies

4. Linux

GNUGK-How to setup static gateway to gateway routing

Dear Sir I am a newbie in the world of IP telephony. I have been working with Asterisk PBX (SIP) and Cisco Call Manager (MGCP) but now I am learning on how to work GNUGK for H.323 Gatekeeper. I am having a problem, configuring static call routing on GNUGK in the section ... (0 Replies)
Discussion started by: mfondoum
0 Replies

5. UNIX for Dummies Questions & Answers

routing multiple IPs

hi guys This is suse 11 sp1 I have a Server that has 4 NICs, I've created 2 bonds bond0(eth0-eth1) - 10.10.10.2 bond1(eth2-eth3) - 10.10.10.3 Each bound goes to a Storage Device which is directly connected so bond0 goes to Storage_Controller_1 and 2 like this Server_bond0 <-------->... (2 Replies)
Discussion started by: karlochacon
2 Replies

6. Solaris

Solaris IPS problems

Hi guys, long time no see Today I installed Oracle Solaris 11.11 in virtualbox. My machine needs to be bulletproof for our production databases but :D First problem is that I can't install anything using IPS where publisher is solars, default freeware repo for Oracle Solaris. I need... (9 Replies)
Discussion started by: solaris_user
9 Replies

7. Solaris

Updating my Solaris 11 IPS

Hi experts, I have an X86 as my IPS server running ( uname -a SunOS 5.11 11.1 i86pc i386 i86pc). the IPS has the following package version: prdb01b:~# pkg list -fa entire NAME (PUBLISHER) VERSION IFO entire ... (0 Replies)
Discussion started by: afadaghi
0 Replies

8. AIX

Get List of users+IPs

Hello! We have an AIX box (6.3), we are looking for a way to get list of logged in users and their IP. The issue we have is running who -ub shows hostname and we are wanting to get the ip. Any suggestions of ideas? Thanks in advance for any help! (4 Replies)
Discussion started by: entropy1980
4 Replies

9. Solaris

IPS postinstall script

Hi guys, I'm creating custom package for deploying a bunch of public keys for some root servers we have. I have created script and it works but my problem is how to call this script when I want deploy package with puppet on server? Oracle documentation provided only example for first boot script... (0 Replies)
Discussion started by: solaris_user
0 Replies

10. UNIX for Beginners Questions & Answers

Inconsistency between RedHat 6.5 global gateway and single gateway leads to loss of default gateway

Dear friends I use RedHat 6.5, which sets the gateway in the configuration file / etc / sysconfig / network as GATEWAY = 192.168.1.26, and the gateway in the configuration file / etc / sysconfig / network-scripts / ifcfg-eth11 as GATEWAY = 192.168.1.256. The two gateways are different.... (6 Replies)
Discussion started by: tanpeng
6 Replies
SCAPY(1)						      General Commands Manual							  SCAPY(1)

NAME
scapy - Interactive packet manipulation tool SYNOPSIS
scapy [options] DESCRIPTION
This manual page documents briefly the scapy tool. scapy is a powerful interactive packet manipulation tool, packet generator, network scanner, network discovery, packet sniffer, etc. It can for the moment replace hping, parts of nmap, arpspoof, arp-sk, arping, tcpdump, tshark, p0f, ... scapy uses the python interpreter as a command board. That means that you can use directly python language (assign variables, use loops, define functions, etc.) If you give a file as parameter when you run scapy, your session (variables, functions, intances, ...) will be saved when you leave the interpretor, and restored the next time you launch scapy. The idea is simple. Those kind of tools do two things : sending packets and receiving answers. That's what scapy does : you define a set of packets, it sends them, receives answers, matches requests with answers and returns a list of packet couples (request, answer) and a list of unmatched packets. This has the big advantage over tools like nmap or hping that an answer is not reduced to (open/closed/filtered), but is the whole packet. On top of this can be build more high level functions, for example one that does traceroutes and give as a result only the start TTL of the request and the source IP of the answer. One that pings a whole network and gives the list of machines answering. One that does a portscan and returns a LaTeX report. OPTIONS
Options for scapy are: -h display usage -d increase log verbosity. Can be used many times. -s FILE use FILE to save/load session values (variables, functions, intances, ...) -p PRESTART_FILE use PRESTART_FILE instead of $HOME/.scapy_prestart.py as pre-startup file -P do not run prestart file -c STARTUP_FILE use STARTUP_FILE instead of $HOME/.scapy_startup.py as startup file -C do not run startup file COMMANDS
Only the vital commands to begin are listed here for the moment. ls() lists supported protocol layers. If a protocol layer is given as parameter, lists its fields and types of fields. lsc() lists some user commands. If a command is given as parameter, its documentation is displayed. conf this object contains the configuration. FILES
$HOME/.scapy_prestart.py This file is run before scapy core is loaded. Only the is available. This file can be used to manipulate conf.load_layers list to choose which layers will be loaded: conf.load_layers.remove("bluetooth") conf.load_layers.append("new_layer") $HOME/.scapy_startup.py This file is run after scapy is loaded. It can be used to configure some of the scapy behaviors: conf.prog.pdfreader="xpdf" split_layers(UDP,DNS) EXAMPLES
More verbose examples are available at http://www.secdev.org/projects/scapy/demo.html Just run scapy and try the following commands in the interpreter. Test the robustness of a network stack with invalid packets: sr(IP(dst="172.16.1.1", ihl=2, options="b$2$", version=3)/ICMP()) Packet sniffing and dissection (with a bpf filter or thetereal-like output): a=sniff(filter="tcp port 110") a=sniff(prn = lambda x: x.display) Sniffed packet reemission: a=sniff(filter="tcp port 110") sendp(a) Pcap file packet reemission: sendp(rdpcap("file.cap")) Manual TCP traceroute: sr(IP(dst="www.google.com", ttl=(1,30))/TCP(seq=RandInt(), sport=RandShort(), dport=dport) Protocol scan: sr(IP(dst="172.16.1.28", proto=(1,254))) ARP ping: srp(Ether(dst="ff:ff:ff:ff:ff:ff")/ARP(pdst="172.16.1.1/24")) ACK scan: sr(IP(dst="172.16.1.28")/TCP(dport=(1,1024), flags="A")) Passive OS fingerprinting: sniff(prn=prnp0f) Active OS fingerprinting: nmap_fp("172.16.1.232") ARP cache poisonning: sendp(Ether(dst=tmac)/ARP(op="who-has", psrc=victim, pdst=target)) Reporting: report_ports("192.168.2.34", (20,30)) SEE ALSO
http://www.secdev.org/projects/scapy http://trac.secdev.org/scapy BUGS
Does not give the right source IP for routes that use interface aliases. May miss packets under heavy load. Session saving is limited by Python ability to marshal objects. As a consequence, lambda functions and generators can't be saved, which seriously reduce usefulness of this feature. BPF filters don't work on Point-to-point interfaces. AUTHOR
Philippe Biondi <phil@secdev.org> This manual page was written by Alberto Gonzalez Iniesta <agi@agi.as> and Philippe Biondi. May 12, 2003 SCAPY(1)
All times are GMT -4. The time now is 02:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy