Fix regex escaping thanks to w3bd3vil
parent
33e6bdedee
commit
a709fe1fe3
|
@ -160,7 +160,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
# snapshots to figure it out.
|
||||
#
|
||||
def get_my_file(before, after)
|
||||
r = /\<td\>\<a href\=\"(\d{4}\-\d{2}\-\d{2}\_\d+\-\d+\-\d+\_\d+\.\w+)">\d{4}\-\d{2}\-\d{2}\_\d+\-\d+\-\d+\_\d+\.\w+\<\/a\>\<\/td\>/
|
||||
r = /\<td\>\<a href\=\"(\d{4}\-\d{2}\-\d{2}\_\d+\-\d+\-\d+\_\d+\.\w+)\"\>\d{4}\-\d{2}\-\d{2}\_\d+\-\d+\-\d+\_\d+\.\w+\<\/a\>\<\/td\>/
|
||||
b = (before.scan(r) || []).flatten
|
||||
a = (after.scan(r) || []).flatten
|
||||
|
||||
|
|
Loading…
Reference in New Issue