Fix regex escaping thanks to w3bd3vil

unstable
sinn3r 2012-06-07 16:00:59 -05:00
parent 33e6bdedee
commit a709fe1fe3
1 changed files with 1 additions and 1 deletions

View File

@ -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