This file contains hidden or 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
package ysoserial.payloads; | |
import com.mchange.lang.ByteUtils; | |
import org.apache.commons.collections.Transformer; | |
import org.apache.commons.collections.functors.ChainedTransformer; | |
import org.apache.commons.collections.functors.ConstantTransformer; | |
import org.apache.commons.collections.functors.InvokerTransformer; | |
import org.apache.commons.collections.keyvalue.TiedMapEntry; | |
import org.apache.commons.collections.map.LazyMap; | |
import ysoserial.payloads.annotation.Authors; |
This file contains hidden or 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
// ==UserScript== | |
// @name mTrans | |
// @namespace simple.trans.tool | |
// @version 1.10 | |
// @description Translates selected text into a tooltip. | |
// @copyright @miamor | |
// @include https://hanaichi.vn/backend/phucthai/amm/orders/update/* | |
// @require http://code.jquery.com/jquery-2.1.0.min.js | |
// @grant GM_getValue | |
// @grant GM_setValue |
This file contains hidden or 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
// ==UserScript== | |
// @name Simple annoying adware | |
// @namespace SimpleAnnoyingAdware | |
// @include * | |
// @author Tu nguyen | |
// @description Just something stupid | |
// @require https://code.jquery.com/jquery-3.4.1.min.js | |
// @grant GM_notification | |
// @grant window.focus | |
// ==/UserScript== |
This file contains hidden or 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
""" | |
Data used for this script: https://github.com/defcom17/NSL_KDD | |
Remove the 42th column (name of attack type) | |
""" | |
import sys | |
import os | |
import json | |
import pandas | |
import numpy as np |
This file contains hidden or 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
""" | |
Data used for this script: | |
https://raw.githubusercontent.com/networkedsystemsIITB/Traffic_Classification/master/scripts/v1.0/KNN-classification-2-interface-machine/data.csv | |
""" | |
""" | |
Step 1 : Load and setup data | |
""" | |
import csv | |
import pandas as pd |
This file contains hidden or 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
""" | |
Data used for this script: | |
https://raw.githubusercontent.com/networkedsystemsIITB/Traffic_Classification/master/scripts/v1.0/KNN-classification-2-interface-machine/data.csv | |
""" | |
import pandas | |
from pandas.plotting import scatter_matrix | |
import matplotlib.pyplot as plt | |
from sklearn import model_selection | |
from sklearn.metrics import classification_report |