I am trying to run
tcpflow -i any -C -g port 80 | grep -i "password1="
linux command using subprocess module in python. I am writing this like
proc = subprocess.Popen(["tcpflow", "-i", "any", "-C", "-g", "port", "80", "|", "grep", "-i", "'password1='"], stdout=subprocess.PIPE)
but it shows the error:
reportfilename: ./report.xml
tcpflow: 'password1=': No such device exists (SIOCGIFHWADDR: No such device)
But when I run the command in the terminal it runs perfectly. How can I resolve this issue?