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

ベンチマーク用スクリプトを組む。 #76

Open
HayatoDoi opened this issue Jan 5, 2018 · 3 comments
Open

ベンチマーク用スクリプトを組む。 #76

HayatoDoi opened this issue Jan 5, 2018 · 3 comments
Assignees

Comments

@HayatoDoi
Copy link
Member

ただの自己満足。

@HayatoDoi
Copy link
Member Author

/beanch に置く。

@HayatoDoi HayatoDoi self-assigned this Jan 6, 2018
@kmyk
Copy link
Member

kmyk commented Jan 7, 2018

半分書いてあったのを借りてbenchmarkをしかけました
エラーがでたので(どこに原因があるかは分からないが)とりあえずtracebackを置いておきます

Traceback (most recent call last):
  File "./foo.py", line 33, in <module>
    q.submit(session=session, q_id=q_id, flag='HarekazeCTF{xxxxxx}')
  File "/home/user/local/ctf/harekaze/scoreserver-greetings/HarekazeCTF-Competition/beanch/lib/question.py", line 58, in submit
    raise Exception('fail')
Exception: fail
Traceback (most recent call last):
  File "./foo.py", line 29, in <module>
    q_ids = q.list()
  File "/home/user/local/ctf/harekaze/scoreserver-greetings/HarekazeCTF-Competition/beanch/lib/question.py", line 76, in list
    url = i.find('a')['href']
TypeError: 'NoneType' object is not subscriptable

@kmyk
Copy link
Member

kmyk commented Jan 10, 2018

新しい種類のエラーを見たので

Traceback (most recent call last):
  File "./attack.py", line 40, in <module>
    q.submit(session=session, q_id=q_id, flag='HarekazeCTF{xxxxxx}')
  File "/home/user/local/ctf/harekaze/scoreserver-greetings/HarekazeCTF-Competition/beanch/lib/question.py", line 62, in submit
    msg = soup.body.find( 'form' ).find( attrs={ 'role' : 'alert' } ).string
AttributeError: 'NoneType' object has no attribute 'string'

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

2 participants