Indonesian Back|Track Team
cara fix error saat msfupdate - Printable Version

+- Indonesian Back|Track Team (https://www.indonesianbacktrack.or.id/forum)
+-- Forum: Penetration Testing Os (https://www.indonesianbacktrack.or.id/forum/forum-170.html)
+--- Forum: Backtrack (https://www.indonesianbacktrack.or.id/forum/forum-171.html)
+---- Forum: BackTrack 5 (https://www.indonesianbacktrack.or.id/forum/forum-74.html)
+----- Forum: BackTrack 5 tutorial (https://www.indonesianbacktrack.or.id/forum/forum-82.html)
+----- Thread: cara fix error saat msfupdate (/thread-3970.html)



cara fix error saat msfupdate - wine trochanter - 11-08-2012

sebenarnya belum nyoba sih tapi apa salahnya klo kita berbagi
awalnya sih iseng2 update msfconsole, ehh pas di buka errror=> windows_console_color_support.rb

terpaksa dah inul gara2 gak tau caranya Big Grin
ehh ternyata ada cara fix nya, tinggal buat file windows_console_color_support.rb

cek disini yah
https://github.com/rapid7/metasploit-framework/blob/brother/lib/windows_console_color_support.rb

kalo bingung silahkan tanya ama om om sini yah

kabur dulu cuma numpang spam, :-bd


RE: cara fix error saat msfupdate - zee eichel - 11-08-2012

mv to subforum fix tools .. nice share dok Smile


RE: cara fix error saat msfupdate - wine trochanter - 11-08-2012

(11-08-2012, 12:33 AM)zee eichel Wrote: mv to subforum fix tools .. nice share dok Smile

hehe maaf om slaah kamar Big Grin
keep share aja om :-bd


RE: cara fix error saat msfupdate - Chrono_AngeL - 11-16-2012

404 page not found. . .
link ny ud hilang deh kaya ny


RE: cara fix error saat msfupdate - wine trochanter - 11-16-2012

(11-16-2012, 10:30 PM)Chrono_AngeL Wrote: 404 page not found. . .
link ny ud hilang deh kaya ny
Spoiler! :
# Windows console color support
# Copyright 2011 Michael 'mihi' Schierl
# Licensed under MSF license

class WindowsConsoleColorSupport

STD_OUTPUT_HANDLE = -11
COLORS = [0, 4, 2, 6, 1, 5, 3, 7]

def initialize(origstream)
@origstream = origstream

# initialize API
@GetStdHandle = Win32API.new("kernel32","GetStdHandle",['L'],'L')
@GetConsoleScreenBufferInfo = Win32API.new("kernel32","GetConsoleScreenBufferInfo",['L','P'],'L')
@SetConsoleTextAttribute = Win32API.new("kernel32","SetConsoleTextAttribute",['L','l'],'L')
@hConsoleHandle = @GetStdHandle.Call(STD_OUTPUT_HANDLE)
end

def write(msg)
rest = msg
while (rest =~ Regexp.new("([^\e]*)\e\\[([0-9;]+)m"))
@origstream.write($1)
rest = $' # save it now since setcolor may clobber it
$2.split(";").each do |color|
setcolor(color.to_i)
end
end
@origstream.write(rest)
end

def flush
@origstream.flush
end

def setcolor(color)
csbi = 0.chr * 24
@GetConsoleScreenBufferInfo.Call(@hConsoleHandle,csbi)
wAttr = csbi[8,2].unpack('S').first

case color
when 0 # reset
wAttr = 0x07
when 1 # bold
wAttr |= 0x08
when 2 # unbold
wAttr &= ~0x08
when 7 # reverse
wAttr = ((wAttr & 0x0f) << 4) | ((wAttr & 0xf0) >> 4)
when 8 # conceal
wAttr &= ~0x0f
when 30 .. 37 # foreground colors
wAttr = (wAttr & ~0x07) | COLORS[color - 30]
when 40 .. 47 # background colors
wAttr = (wAttr & ~0x70) | (COLORS[color - 40] << 4)
end

@SetConsoleTextAttribute.Call(@hConsoleHandle, wAttr)
end
end


search di google dg clue
windows_console_color_support.rb


RE: cara fix error saat msfupdate - Enggar Agus Subangun - 02-16-2013

itu di copas di dir apa om terimakasih ini ada kejadian sma pada lapi ku bt5r1


RE: cara fix error saat msfupdate - ivan_stg - 05-31-2013

sama nh, kejadian nya..setelah upgrade terus msfconsole hasilnya
root@bt:~# msfconsole
[*] Metasploit requires the Bundler gem to be installed
$ gem install bundler