Adds specs
This commit is contained in:
@@ -35,15 +35,47 @@ describe WPScan::Finders::InterestingFindings::DuplicatorInstallerLog do
|
|||||||
end
|
end
|
||||||
|
|
||||||
context 'when the body matches' do
|
context 'when the body matches' do
|
||||||
let(:body) { File.read(fixtures.join(filename)) }
|
after do
|
||||||
|
|
||||||
it 'returns the InterestingFinding' do
|
|
||||||
expect(finder.aggressive).to eql WPScan::Model::DuplicatorInstallerLog.new(
|
expect(finder.aggressive).to eql WPScan::Model::DuplicatorInstallerLog.new(
|
||||||
log_url,
|
log_url,
|
||||||
confidence: 100,
|
confidence: 100,
|
||||||
found_by: described_class::DIRECT_ACCESS
|
found_by: described_class::DIRECT_ACCESS
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context 'when old versions of the file' do
|
||||||
|
let(:body) { File.read(fixtures.join('old.txt')) }
|
||||||
|
|
||||||
|
it 'returns the InterestingFinding' do
|
||||||
|
# handled in after loop above
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
context 'when newest versions of the file' do
|
||||||
|
context 'when PRO format 1' do
|
||||||
|
let(:body) { File.read(fixtures.join('pro.txt')) }
|
||||||
|
|
||||||
|
it 'returns the InterestingFinding' do
|
||||||
|
# handled in after loop above
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
context 'when PRO format 2' do
|
||||||
|
let(:body) { File.read(fixtures.join('pro2.txt')) }
|
||||||
|
|
||||||
|
it 'returns the InterestingFinding' do
|
||||||
|
# handled in after loop above
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
context 'when LITE' do
|
||||||
|
let(:body) { File.read(fixtures.join('lite.txt')) }
|
||||||
|
|
||||||
|
it 'returns the InterestingFinding' do
|
||||||
|
# handled in after loop above
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
5
spec/fixtures/finders/interesting_findings/duplicator_installer_log/lite.txt
vendored
Normal file
5
spec/fixtures/finders/interesting_findings/duplicator_installer_log/lite.txt
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
********************************************************************************
|
||||||
|
* DUPLICATOR-LITE INSTALL-LOG
|
||||||
|
* STEP1 START @ 04:10:42
|
||||||
|
* NOTICE: Do NOT post to public sites or forums
|
||||||
|
********************************************************************************
|
||||||
5
spec/fixtures/finders/interesting_findings/duplicator_installer_log/pro.txt
vendored
Normal file
5
spec/fixtures/finders/interesting_findings/duplicator_installer_log/pro.txt
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
********************************************************************************
|
||||||
|
* DUPLICATOR-PRO: Install-Log
|
||||||
|
* STEP1 START @ 04:10:42
|
||||||
|
* NOTICE: Do NOT post to public sites or forums
|
||||||
|
********************************************************************************
|
||||||
5
spec/fixtures/finders/interesting_findings/duplicator_installer_log/pro2.txt
vendored
Normal file
5
spec/fixtures/finders/interesting_findings/duplicator_installer_log/pro2.txt
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
********************************************************************************
|
||||||
|
DUPLICATOR PRO INSTALL-LOG
|
||||||
|
STEP1 START @ 04:10:42
|
||||||
|
NOTICE: Do NOT post to public sites or forums
|
||||||
|
********************************************************************************
|
||||||
Reference in New Issue
Block a user