|
6 | 6 | describe file('/home/artoo_detoo/music/10_of_clubs.wav') do
|
7 | 7 | it { should be_file }
|
8 | 8 | it { should be_owned_by 'artoo_detoo' }
|
9 |
| - its('mode') { should cmp '0400' } |
| 9 | + its('mode') { should cmp '0410' } |
10 | 10 | its('md5sum') { should eq '5b97f084aa90c4b9504725519cf5204e' }
|
11 | 11 | end
|
12 | 12 |
|
|
33 | 33 | # NOTE: The chatbot can get a little laggy if there is a lot of data in the log.
|
34 | 34 | # This can cause this test to fail incorrectly.
|
35 | 35 | # To remedy, clear the /var/www/log.html file on metasploitable and restart the chatbot service.
|
36 |
| -# describe 'ace_of_clubs' do |
37 |
| -# let(:host_ip) { command("ip addr | grep 'state UP' -A2 | grep 'eth0' | tail -n1 | awk '{print $2}' | cut -f1 -d'/'").stdout.strip } |
38 |
| -# |
39 |
| -# it 'should print out the correct base64 flag' do |
40 |
| -# ct = ChatTest.new(host_ip) |
41 |
| -# expect(ct.check_chat_bot).to eq true #TODO: Make this output more meaningful. e.g. output what was returned and what was expected. |
42 |
| -# end |
43 |
| -# end |
| 36 | +describe 'ace_of_clubs' do |
| 37 | + let(:host_ip) { command("ip addr | grep 'state UP' -A2 | grep 'eth0' | tail -n1 | awk '{print $2}' | cut -f1 -d'/'").stdout.strip } |
| 38 | + |
| 39 | + it 'should print out the correct base64 flag' do |
| 40 | + ct = ChatTest.new(host_ip) |
| 41 | + expect(ct.check_chat_bot).to eq true #TODO: Make this output more meaningful. e.g. output what was returned and what was expected. |
| 42 | + end |
| 43 | +end |
44 | 44 |
|
45 | 45 | # Tests for "Hard mode" flags
|
46 | 46 | if ENV['MS3_LINUX_HARD']
|
|
119 | 119 | # 9 of Diamonds tests
|
120 | 120 | describe file('/home/kylo_ren/.secret_files/my_recordings_do_not_open.iso') do
|
121 | 121 | it { should be_file }
|
122 |
| - its('mode') { should cmp '0600' } |
| 122 | + its('mode') { should cmp '0610' } |
123 | 123 | its('owner') { should eq 'kylo_ren' }
|
124 | 124 | its('group') { should eq 'users' }
|
125 | 125 | end
|
|
0 commit comments