Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: invalid syntax on basic usage #1

Open
sandeeprenjith opened this issue Nov 14, 2019 · 2 comments
Open

SyntaxError: invalid syntax on basic usage #1

sandeeprenjith opened this issue Nov 14, 2019 · 2 comments

Comments

@sandeeprenjith
Copy link

sandeeprenjith commented Nov 14, 2019

Getting the below error while trying to use the tool to create stress.

╭─nd33p@trv-wl-srenjith /mnt/c/Users/srenjith/Dropbox/gits/ppdns_stress ‹master›
╰─$ python ppdnstress.py                                                                    1 ↵
Enter the number of queries you wanna send: 3000
Enter the DNS server to be stressed: 192.168.130.9
Traceback (most recent call last):
  File "ppdnstress.py", line 7, in <module>
    dns_server = input('Enter the DNS server to be stressed: ')
  File "<string>", line 1
    192.168.130.9
              ^
SyntaxError: invalid syntax

@sandeeprenjith
Copy link
Author

╭─nd33p@trv-wl-srenjith /mnt/c/Users/srenjith/Dropbox/gits/ppdns_stress ‹master*›
╰─$ python -V
Python 2.7.15rc1

@sandeeprenjith
Copy link
Author

Works on Python3

╭─nd33p@trv-wl-srenjith /mnt/c/Users/srenjith/Dropbox/gits/ppdns_stress ‹master*›
╰─$ python3 ppdnstress.py
Enter the number of queries you wanna send: 3000
Enter the DNS verver to be stressed: 192.163.130.9
 Sent 3000%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant