Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove $Id tags #1853

Merged
merged 1 commit into from
May 22, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions lib/msf/base/sessions/command_shell_options.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##

##
# This file is part of the Metasploit Framework and may be subject to
Expand Down
1 change: 0 additions & 1 deletion lib/msf/base/sessions/meterpreter.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'msf/base'
require 'msf/base/sessions/scriptable'
Expand Down
1 change: 0 additions & 1 deletion lib/msf/base/sessions/meterpreter_java.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'msf/base/sessions/meterpreter'

Expand Down
1 change: 0 additions & 1 deletion lib/msf/base/sessions/meterpreter_options.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'shellwords'

Expand Down
1 change: 0 additions & 1 deletion lib/msf/base/sessions/meterpreter_php.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'msf/base/sessions/meterpreter'

Expand Down
1 change: 0 additions & 1 deletion lib/msf/base/sessions/meterpreter_x86_bsd.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'msf/base/sessions/meterpreter'

Expand Down
1 change: 0 additions & 1 deletion lib/msf/base/sessions/meterpreter_x86_linux.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'msf/base/sessions/meterpreter'

Expand Down
1 change: 0 additions & 1 deletion lib/msf/base/sessions/meterpreter_x86_win.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'msf/base/sessions/meterpreter'
require 'msf/windows_error'
Expand Down
1 change: 0 additions & 1 deletion lib/msf/base/sessions/tty.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'msf/base'

Expand Down
3 changes: 0 additions & 3 deletions lib/msf/base/sessions/vncinject_options.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##

module Msf
module Sessions
Expand Down
1 change: 0 additions & 1 deletion lib/msf/base/simple/buffer.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'msf/base'

Expand Down
1 change: 0 additions & 1 deletion lib/msf/base/simple/payload.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'msf/base'

Expand Down
1 change: 0 additions & 1 deletion lib/msf/core/auxiliary/commandshell.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'msf/base/sessions/command_shell_options'

Expand Down
3 changes: 0 additions & 3 deletions lib/msf/core/auxiliary/login.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##

module Msf

Expand Down
3 changes: 0 additions & 3 deletions lib/msf/core/auxiliary/pii.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
###
# $Id$
###

module Msf

Expand Down
3 changes: 0 additions & 3 deletions lib/msf/core/auxiliary/rservices.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##

##
#
Expand Down
1 change: 0 additions & 1 deletion lib/msf/core/encoded_payload.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'msf/core'

Expand Down
1 change: 0 additions & 1 deletion lib/msf/core/exploit/browser_autopwn.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$
#
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
Expand Down
1 change: 0 additions & 1 deletion lib/msf/core/exploit/cmdstager.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'rex/exploitation/cmdstager'
require 'msf/core/exploit/exe'
Expand Down
1 change: 0 additions & 1 deletion lib/msf/core/exploit/cmdstager_debug_asm.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'msf/core/exploit/cmdstager'

Expand Down
1 change: 0 additions & 1 deletion lib/msf/core/exploit/cmdstager_debug_write.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'msf/core/exploit/cmdstager'

Expand Down
1 change: 0 additions & 1 deletion lib/msf/core/exploit/cmdstager_tftp.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'rex/text'
require 'msf/core/exploit/tftp'
Expand Down
1 change: 0 additions & 1 deletion lib/msf/core/exploit/cmdstager_vbs.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'msf/core/exploit/cmdstager'

Expand Down
1 change: 0 additions & 1 deletion lib/msf/core/exploit/cmdstager_vbs_adodb.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id: $

require 'msf/core/exploit/cmdstager'

Expand Down
1 change: 0 additions & 1 deletion lib/msf/core/exploit/dhcp.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'rex/proto/dhcp'

Expand Down
1 change: 0 additions & 1 deletion lib/msf/core/exploit/egghunter.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'rex/exploitation/egghunter'

Expand Down
3 changes: 0 additions & 3 deletions lib/msf/core/exploit/exe.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##

###
#
Expand Down
1 change: 0 additions & 1 deletion lib/msf/core/exploit/fmtstr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module Msf
# in a more intelligent way.
#
# Author: jduck
# $Id$
###

module Exploit::FormatString
Expand Down
3 changes: 0 additions & 3 deletions lib/msf/core/exploit/ipv6.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##

module Msf

Expand Down
1 change: 0 additions & 1 deletion lib/msf/core/exploit/mixins.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$
#
# All exploit mixins should be added to the list below
#
Expand Down
3 changes: 0 additions & 3 deletions lib/msf/core/exploit/mysql.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##

##
# This file is part of the Metasploit Framework and may be subject to
Expand Down
1 change: 0 additions & 1 deletion lib/msf/core/exploit/omelet.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'rex/exploitation/omelet'

Expand Down
3 changes: 0 additions & 3 deletions lib/msf/core/exploit/pdf.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##

###
#
Expand Down
3 changes: 0 additions & 3 deletions lib/msf/core/exploit/php_exe.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##

###
#
Expand Down
3 changes: 0 additions & 3 deletions lib/msf/core/exploit/riff.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##

module Msf

Expand Down
4 changes: 3 additions & 1 deletion lib/msf/core/exploit/tcp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,8 @@ def ssl_cert
#
def regenerate_payload(cli, arch = nil, platform = nil, target = nil)

$stderr.puts("Tcp##{__method__} : target: #{target.inspect}")

ohost = datastore['RHOST']
oport = datastore['RPORT']
p = nil
Expand All @@ -477,7 +479,7 @@ def regenerate_payload(cli, arch = nil, platform = nil, target = nil)
datastore['RHOST'] = cli.peerhost
datastore['RPORT'] = cli.peerport

if ((p = super(arch, platform, target)) == nil)
if ((p = super(platform, arch, target)) == nil)
print_error("Failed to generate payload")
return nil
end
Expand Down
3 changes: 0 additions & 3 deletions lib/msf/core/exploit/telnet.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##

module Msf

Expand Down
1 change: 0 additions & 1 deletion lib/msf/core/exploit/tftp.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'rex/proto/tftp'

Expand Down
3 changes: 0 additions & 3 deletions lib/msf/core/exploit/wbemexec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##

#
# This mixin enables executing arbitrary commands via the
Expand Down
5 changes: 5 additions & 0 deletions lib/msf/core/payload/generic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,13 @@ def actual_arch
arch = nil

if explicit_arch.nil? == false
$stderr.puts "explicit"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These $stderr.puts are intended in this pull request? I don't see lot of use of $stderr across msf/core code so just asking.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

certainly not. also the if statement here should be an unless anyway.
On May 20, 2013 6:55 PM, "Juan Vazquez" notifications@github.com wrote:

In lib/msf/core/payload/generic.rb:

@@ -211,10 +211,13 @@ def actual_arch
arch = nil

    if explicit_arch.nil? == false
  •       $stderr.puts "explicit"
    

These $stderr.puts are intended in this pull request? I don't see lot of
use of $stderr across msf/core code so just asking.


Reply to this email directly or view it on GitHubhttps://github.com//pull/1853/files#r4308363
.

arch = explicit_arch
elsif datastore['ARCH']
$stderr.puts "datastore"
arch = datastore['ARCH']
elsif assoc_exploit
$stderr.puts "assoc_exploit"
arch = assoc_exploit.target_arch || ARCH_X86
end

Expand All @@ -233,6 +236,8 @@ def find_actual_payload

# Look for one based on the exploit's compatible set
if(assoc_exploit)
$stderr.puts "assoc_exploit #{assoc_exploit.name}"
$stderr.puts "#{actual_arch} #{actual_platform.inspect}"
self.actual_payload = framework.payloads.find_payload_from_set(
assoc_exploit.compatible_payloads,
actual_platform,
Expand Down
3 changes: 0 additions & 3 deletions lib/msf/core/payload/windows/exec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##

module Msf

Expand Down
3 changes: 0 additions & 3 deletions lib/msf/core/payload/windows/loadlibrary.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##

module Msf

Expand Down
3 changes: 0 additions & 3 deletions lib/msf/core/rpc/v10/rpc_module.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
##
# $Id: module.rb 12624 2011-05-15 23:51:53Z hdm $
##

module Msf
module RPC
Expand Down
1 change: 0 additions & 1 deletion lib/msf/ui/console/command_dispatcher/payload.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'rex/parser/arguments'

Expand Down
3 changes: 0 additions & 3 deletions lib/msf/windows_error.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##

#
# Windows system error codes (0-499)
Expand Down
2 changes: 0 additions & 2 deletions lib/rex/elfparsey.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env ruby
# -*- coding: binary -*-

# $Id$

module Rex
module ElfParsey

Expand Down
2 changes: 0 additions & 2 deletions lib/rex/elfparsey/elf.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env ruby
# -*- coding: binary -*-

# $Id$

require 'rex/elfparsey/elfbase'
require 'rex/elfparsey/exceptions'
require 'rex/image_source'
Expand Down
2 changes: 0 additions & 2 deletions lib/rex/elfparsey/elfbase.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env ruby
# -*- coding: binary -*-

# $Id$

require 'rex/struct2'

module Rex
Expand Down
2 changes: 0 additions & 2 deletions lib/rex/elfparsey/exceptions.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env ruby
# -*- coding: binary -*-

# $Id$

module Rex
module ElfParsey

Expand Down
2 changes: 0 additions & 2 deletions lib/rex/elfscan.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env ruby
# -*- coding: binary -*-

# $Id$

module Rex
module ElfScan

Expand Down
2 changes: 0 additions & 2 deletions lib/rex/elfscan/scanner.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: binary -*-

# $Id$

module Rex
module ElfScan
module Scanner
Expand Down
2 changes: 0 additions & 2 deletions lib/rex/elfscan/search.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env ruby
# -*- coding: binary -*-

# $Id$

module Rex
module ElfScan
module Search
Expand Down