官术网_书友最值得收藏!

Running the application

With the addition of feature extraction in our pipeline, we first need to perform feature extraction on the files:

  1. Assuming the folder of files called temp_data exists, execute the following command:
PS chapter03-logistic-regression\bin\Debug\netcoreapp3.0> .\chapter03-logistic-regression.exe extract temp_data                                                
Extracted 8 to sampledata.csv

The output shows the count of extracted files and the output sample file.

  1. To train the model using either the included sampledata.csv or one you trained yourself, execute the following command:
PS chapter03-logistic-regression\bin\Debug\netcoreapp3.0> .\chapter03-logistic-regression.exe train ..\..\..\Data\sampledata.csv

The chapter3.mdl model file should exist in the folder executed in once complete.

  1. To run the newly trained model against an existing file such as the compiled chapter3 executable, run the following command:
PS chapter03-logistic-regression\bin\Debug\netcoreapp3.0> .\chapter03-logistic-regression.exe predict .\chapter03-logistic-regression.exe                      
Based on the file (.\chapter03-logistic-regression.exe) the file is classified as benign at a confidence level of 8%
If you are looking for sample files, the c:\Windows and c:\Windows\System32 folders contain numerous Windows Executables and DLLs. In addition, if you are looking to create malicious-looking files that are actually clean, you can create files on the fly on http://cwg.io in various file formats. This is a helpful tool in the cyber-security space where testing new functionality on a development machine is much safer than detonating real zero-day threats on!
主站蜘蛛池模板: 库伦旗| 康平县| 左贡县| 长兴县| 都兰县| 毕节市| 德格县| 边坝县| 平昌县| 达州市| 城步| 高雄县| 晋城| 富宁县| 柯坪县| 乌拉特前旗| 泽州县| 类乌齐县| 龙海市| 丁青县| 舟山市| 古蔺县| 西乌珠穆沁旗| 台南县| 白水县| 阜新| 台安县| 长春市| 莒南县| 海安县| 建德市| 浦江县| 闸北区| 奈曼旗| 化州市| 正蓝旗| 密山市| 嵊泗县| 大关县| 乌拉特前旗| 正镶白旗|