Last active
August 18, 2019 17:26
-
-
Save a-agmon/3d68c477f2e63e889fea6a0cf7be7314 to your computer and use it in GitHub Desktop.
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
#Load tp file | |
df_raw = pd.read_csv(r'path\capture20110810-scen1.binetflow') | |
#label the infected address | |
infected_addr = "147.32.84.165" | |
df_raw["Bot"] = np.where(df_raw['SrcAddr'] == infected_addr, 1, 0) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment