Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Retrieve protocol in lower case
#1
Hey guys, im trying to retrieve the protocol, but comes up in Uppercase, i need to retrieve it in lower case.
This is my code.

protocol = ip.get_proto(ip.p).__name__
Thank you
Quote
#2
convert it using lower()
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Help Importing Protocol Library Into Scapy joedirgy 0 260 May-02-2019, 07:31 PM
Last Post: joedirgy
  How to only extract upper or lower triangular matrix into tabular form SriRajesh 3 3,384 Jan-04-2019, 01:21 AM
Last Post: scidam
  Pelco D protocol D_frucht 4 1,526 May-30-2018, 08:21 PM
Last Post: D_frucht
  How do I loop through a list and delete numerical elements that are 1 lower/higher? neko 4 1,349 Sep-05-2017, 02:25 PM
Last Post: ichabod801

Forum Jump:


Users browsing this thread: 1 Guest(s)