Hope someone can help me here, I’m getting the same TypeError: 'IP' object is not callable error with 2 different scapy scripts
The first script I’m sending packet to my router:
sr(IP(dst="192.168.1.254")/TCP(dport=[21,22,23,80]))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-50-42d44e8df85e> in <module>()
----> 1 sr(IP(dst="192.168.1.254")/TCP(dport=[21,22,23,80]))
TypeError: 'IP' object is not callable
The second script I’m sending packet to a domain:
a,b =sr(IP(dst="www.danscourses.com")/TCP(sport=[RandShort()]*10))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-60-84b1eab0d90c> in <module>()
----> 1 a,b =sr(IP(dst="www.danscourses.com")/TCP(sport=[RandShort()]*10))
TypeError: 'IP' object is not callable
Am I getting these errors I’m using a usb live persistence and not an Ethernet ?
Thanks the Duke
The first script I’m sending packet to my router:
sr(IP(dst="192.168.1.254")/TCP(dport=[21,22,23,80]))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-50-42d44e8df85e> in <module>()
----> 1 sr(IP(dst="192.168.1.254")/TCP(dport=[21,22,23,80]))
TypeError: 'IP' object is not callable
The second script I’m sending packet to a domain:
a,b =sr(IP(dst="www.danscourses.com")/TCP(sport=[RandShort()]*10))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-60-84b1eab0d90c> in <module>()
----> 1 a,b =sr(IP(dst="www.danscourses.com")/TCP(sport=[RandShort()]*10))
TypeError: 'IP' object is not callable
Am I getting these errors I’m using a usb live persistence and not an Ethernet ?
Thanks the Duke


