-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFileForensics.php
83 lines (73 loc) · 1.47 KB
/
FileForensics.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
use GetOptionKit\OptionResult;
use Application\Command;
class FileForensics extends Command
{
public OptionCollection $specs = [
[
"spec" => "o|output:",
"desc" => "Output to file (defaults to STDOUT).",
"type" => "File",
],
];
protected $pathsToIgnore = [
'/.idea',
'/.git',
'/.DS_Store',
'/README.md',
'/Readme.txt',
'/readme.txt',
'/LICENSE.TXT',
'/version.txt',
'/AssemblyInfo.cs',
'/Program.cs',
'/app.config',
'/App.config',
'/Resources.resx',
'/Settings.Designer.cs',
'/Settings.settings',
'/Resources.Designer.cs',
'/_._',
'/packages.config',
'/.signature.p7s',
'/packages/Microsoft.',
'/packages/MSTest.',
'/packages/System.',
'/Autofac.',
'/Castle.Core',
'/Crc32.NET.',
'/DotNetty.',
'/EnterpriseLibrary.TransientFaultHandling',
'/Mono.Security.' .
'/MSTest.Test',
'/MSTest.TestAdapter.',
'/MSTest.TestFramework.',
'/NETStandard.Library.',
'/Newtonsoft.Json.',
'/PCLCrypto.',
'/PInvoke.',
'/Polly.',
'/Swashbuckle.',
'/Twilio.',
'/Validation.',
'/WindowsAzure.ServiceBus.',
'/WindowsAzure.Storage.',
];
protected $fp;
public function __construct(OptionResult $inputParams)
{
parent::__construct($inputParams);
ini_set('memory_limit', -1);
if ($this->inputParams->has('output')) {
$this->fp = fopen($this->inputParams->output, 'w');
} else {
$this->fp = STDOUT;
}
}
public static function Compare(): int
{
}
public static function SizesAndTypes(): int
{
}
}