Skip to content

Commit 3acccd7

Browse files
committed
Whitespace and doc fix
1 parent a928e5f commit 3acccd7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/rex/exploitation/obfuscatejs.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ class ObfuscateJS
1818
#
1919
# The 'Symbols' argument should have the following format:
2020
#
21-
# {
22-
# 'Variables' => [ 'var1', ... ],
23-
# 'Methods' => [ 'method1', ... ],
24-
# 'Namespaces' => [ 'n', ... ],
25-
# 'Classes' => [ { 'Namespace' => 'n', 'Class' => 'y'}, ... ]
26-
# }
21+
# {
22+
# 'Variables' => [ 'var1', ... ],
23+
# 'Methods' => [ 'method1', ... ],
24+
# 'Namespaces' => [ 'n', ... ],
25+
# 'Classes' => [ { 'Namespace' => 'n', 'Class' => 'y'}, ... ]
26+
# }
2727
#
2828
# Make sure you order your methods, classes, and namespaces by most
2929
# specific to least specific to prevent partial substitution. For
@@ -138,14 +138,14 @@ def obfuscate(opts = {})
138138
# while (buf.length < len)
139139
# buf << set[rand(set.length)].chr
140140
# end
141-
#
141+
#
142142
# buf
143143
#}
144144
end
145145

146146
# Remove our comments
147147
remove_comments
148-
148+
149149
# Globally replace symbols
150150
replace_symbols(@opts['Symbols']) if @opts['Symbols']
151151

@@ -191,9 +191,9 @@ def replace_symbols(symbols)
191191
next if symbols[symtype].nil?
192192
symbols[symtype].each { |sym|
193193
dyn = Rex::Text.rand_text_alpha(rand(32)+1) until dyn and not taken.key?(dyn)
194-
194+
195195
taken[dyn] = true
196-
196+
197197
if symtype == 'Classes'
198198
full_sym = sym['Namespace'] + "." + sym['Class']
199199
@dynsym[full_sym] = dyn

0 commit comments

Comments
 (0)