parent
7bab825224
commit
cd70014446
|
@ -7,21 +7,21 @@ describe Rex::Exploitation::Js::Detect do
|
||||||
context ".os" do
|
context ".os" do
|
||||||
it "should load the OS detection in Javascript" do
|
it "should load the OS detection in Javascript" do
|
||||||
js = Rex::Exploitation::Js::Detect.os.to_s
|
js = Rex::Exploitation::Js::Detect.os.to_s
|
||||||
js.should =~ /window\.os_detect/
|
js.should =~ /os_detect/
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context ".ie_addons" do
|
context ".ie_addons" do
|
||||||
it "should load the IE Addons detection in Javascript" do
|
it "should load the IE Addons detection in Javascript" do
|
||||||
js = Rex::Exploitation::Js::Detect.ie_addons.to_s
|
js = Rex::Exploitation::Js::Detect.ie_addons.to_s
|
||||||
js.should =~ /window\.ie_addons_detect/
|
js.should =~ /ie_addons_detect/
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context ".misc_addons" do
|
context ".misc_addons" do
|
||||||
it "should load the misc Addons detection in Javascript" do
|
it "should load the misc Addons detection in Javascript" do
|
||||||
js = Rex::Exploitation::Js::Detect.misc_addons.to_s
|
js = Rex::Exploitation::Js::Detect.misc_addons.to_s
|
||||||
js.should =~ /window\.misc_addons_detect/
|
js.should =~ /misc_addons_detect/
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue