Permalink
Browse files

fixes some bugs in msfrop

git-svn-id: file:///home/svn/framework3/trunk@13699 4d416f70-5f16-0410-b530-b9f4589650da
  • Loading branch information...
1 parent 6f28911 commit 8fd04c7d0dcae1a07a08ac1bce1e006b5ed5f8b6 @bannedit bannedit committed Sep 6, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 msfrop
View
5 msfrop
@@ -151,6 +151,11 @@ end
if opts[:export]
ropbuilder.print_msg("Exporting %grn#{gadgets.count}%clr gadgets to %bld%cya#{opts[:export]}%clr\n", color)
csv = ropbuilder.to_csv(gadgets)
+
+ if csv.nil?
+ exit(1)
+ end
+
begin
fd = File.new(opts[:export], 'w')
fd.puts csv

0 comments on commit 8fd04c7

Please sign in to comment.