w4sp-book / w4sp-lab

Lab environment for the Wireshark for Security Professionals book
https://github.com/w4sp-book/w4sp-lab/wiki/Lab-Installation
71 stars 42 forks source link

w4sp_webbapps.py #67

Open vksharma4 opened 4 years ago

vksharma4 commented 4 years ago

when I try to install I get: SyntaxError: Missing parentheses in call to 'print'. Did you mean print(ns.pid)?

giacomomangelli commented 4 years ago

just look at the pull request section

kelvinklam commented 2 years ago

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(ns.pid)? I have the same problem. I tried to edit the print ps.pid to print(ns.pid) in the file, it comes out another line error which is

File "/home//w4sp-lab-master/w4sp_webapp2.py", line 8, in import w4sp File "/home//w4sp-lab-master/w4sp.py", line 23 print r('ls -sail /root') ^ SyntaxError: invalid syntax

can anyone help?

abcchad commented 2 years ago

I'm having the same issue as kelvinklam...tried to fix the SyntaxError: Missing parentheses in call to 'print'. Did you mean print(ns.pid) by editing the .py file and adding the parentheses. Now getting the same errors in line 8 and 23. I also tried running in python2, but gave different errors. Anyone know a fix for this?

fajllo commented 2 years ago

Hi,

To solve syntax error in File "/home//w4sp-lab-master/w4sp.py", line 23 you need to edit w4sp.py file. Solution: print(r'ls -sail /root')