1. 해결방법 다른 파이썬버전으로 실행하기
MacBH:CTF leebh$ python dashlame.pyc
RuntimeError: Bad magic number in .pyc file
MacBH:CTF leebh$ python2 dashlame.pyc
python으로 실행하는 버전이 달라서 그렇습니다. 간단한 방법은 3.x로 실행하거나 2.x로 실행시도하는 방법입니다.
2. 버전별로 실행해보기
MacBH:CTF leebh$ python
python python2-config python3-config python3.6m-config
python-config python2.7 python3.6 pythonw
python.app python2.7-config python3.6-config pythonw2
python2 python3 python3.6m pythonw2.7
만약 위의방법이안되면 설치된 파이썬의 버전별로 실행시도를 해봐야합니다.