Becram / pentoo

Automatically exported from code.google.com/p/pentoo
1 stars 0 forks source link

dev-ruby/badsamba #337

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
https://github.com/Sabayon-Labs/spike-community-overlay/tree/master/dev-ruby/bad
samba

its my first crack at a gem ebuild.
feel free to swipe. it 

https://github.com/GDSSecurity/BadSamba
----------------------------------
This module is used to exploit startup script execution through Windows Group 
Policy settings when configured to run off of a remote SMB share.

RB:require 'msf/core'

class Metasploit3 < Msf::Auxiliary

  include Msf::Exploit::Remote::SMBServer

  def initialize
    super(
      'Name'        => 'Malicious SMB Server (Bad Samba)',
      'Description'    => """

Original issue reported on code.google.com by m...@michaellawrenceit.com on 8 Mar 2015 at 1:33

GoogleCodeExporter commented 9 years ago
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: ~~Necrose99 Spike-pentesting.org 
https://github.com/Sabayon-Labs/spike-community-overlay

EAPI="5"

DESCRIPTION="This module is used to exploit startup script execution of windows 
GPOL. on SMB shares "
HOMEPAGE="https://github.com/GDSSecurity/BadSamba"
SRC_URI=""
EGIT_REPO_URI="https://github.com/GDSSecurity/BadSamba.git"
#SRC_URI="https://raw.githubusercontent.com/GDSSecurity/BadSamba/master/badsamba
.rb"
USE_RUBY="ruby19 ruby20 ruby21"

RUBY_FAKEGEM_TASK_DOC=""

RUBY_FAKEGEM_EXTRAINSTALL="BadSamba"

inherit ruby-fakegem git-r3
LICENSE="GPL-3"
LICENSE="BSD"
SLOT="$(get_version_component_range 1-2)"
KEYWORDS="~amd64 ~arm ~x86"
#IUSE="development test"
IUSE=""

RDEPEND="${RDEPEND} !dev-ruby/meterpreter_bins:0
net-analyzer/metasploit:0"
##   my first gem ebuild so give me a break... **HELP/MENTORING :-)  
Appreciated :-) 

Original comment by m...@michaellawrenceit.com on 5 Apr 2015 at 11:52

GoogleCodeExporter commented 9 years ago
https://github.com/rapid7/metasploit-framework/pull/5125#discussion_r28469663

now integrated into msf you can drop this if you like. 

Original comment by m...@michaellawrenceit.com on 20 Apr 2015 at 11:17

GoogleCodeExporter commented 9 years ago
way to go. All these 2kb mega useful scripts should be integrated under a 
relevant framework.

Original comment by blshkv on 12 May 2015 at 1:32