File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1035,16 +1035,16 @@ def self.to_exe_vbs(exes = '', opts = {})
1035
1035
persist = opts [ :persist ] || false
1036
1036
1037
1037
hash_sub = { }
1038
+ hash_sub [ :exe_filename ] = opts [ :exe_filename ] || Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 ) << '.exe'
1038
1039
hash_sub [ :var_shellcode ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1039
- hash_sub [ :exe_filename ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 ) << '.exe'
1040
- hash_sub [ :var_fname ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1041
- hash_sub [ :var_func ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1042
- hash_sub [ :var_stream ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1043
- hash_sub [ :var_obj ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1044
- hash_sub [ :var_shell ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1045
- hash_sub [ :var_tempdir ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1046
- hash_sub [ :var_tempexe ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1047
- hash_sub [ :var_basedir ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1040
+ hash_sub [ :var_fname ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1041
+ hash_sub [ :var_func ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1042
+ hash_sub [ :var_stream ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1043
+ hash_sub [ :var_obj ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1044
+ hash_sub [ :var_shell ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1045
+ hash_sub [ :var_tempdir ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1046
+ hash_sub [ :var_tempexe ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1047
+ hash_sub [ :var_basedir ] = Rex ::Text . rand_text_alpha ( rand ( 8 ) +8 )
1048
1048
1049
1049
hash_sub [ :hex_shellcode ] = exes . unpack ( 'H*' ) . join ( '' )
1050
1050
You can’t perform that action at this time.
0 commit comments