Exploit database

GH-633f01891148734bdb0e00180fb214e7

189569400/fofa

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2014-3120

19 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files4
189569400/fofaRevision 2a1885733801

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

fofacli/lib/rex/zip/samples/comment.rb

Ruby · 793 bytes
# -*- coding: binary -*-

#
# Create a zip file with comments!
#

msfbase = __FILE__
while File.symlink?(msfbase)
  msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
inc = File.dirname(msfbase) + '/../../..'
$:.unshift(inc)

require 'rex/zip'

# example usage
zip = Rex::Zip::Archive.new
zip.add_file("elite.txt", "A" * 1024, nil, %Q<
                                 +---------------+
                                 | file comment! |
                                 +---------------+
>)
zip.set_comment(%Q<

+------------------------------------------+
|                                          |
| Hello!  This is the Zip Archive comment! |
|                                          |
+------------------------------------------+

>)
zip.save_to("lolz.zip")