Projects STRLCPY PCredz Commits f9de9588
🤬
  • Fix Cooked Regex

    Return from subprocess.Popen(...).communicate() can contain the
    string 'Linux cooked v1' and not 'Linux "cooked" v1'.
    This new regex covers both cases.
  • Loading...
  • Victor Ramos Mello committed 2 years ago
    f9de9588
    1 parent 0b6df2be
  • ■ ■ ■ ■
    Pcredz
    skipped 106 lines
    107 107   return True
    108 108   
    109 109  def IsCookedPcap(version):
    110  - Cooked = re.search(b'Linux \"cooked\"', version)
     110 + Cooked = re.search(b'Linux \"?cooked\"?', version)
    111 111   TcpDump = re.search(b'Ethernet', version)
    112 112   Wifi = re.search(b'802.11', version)
    113 113   if Wifi:
    skipped 696 lines
Please wait...
Page is in error, reload to recover