Skip to content

Instantly share code, notes, and snippets.

@nurse
Created February 16, 2012 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nurse/1842399 to your computer and use it in GitHub Desktop.
Save nurse/1842399 to your computer and use it in GitHub Desktop.
Patch to dtcpc
--- dtcpc 2012-02-15 18:48:24.000000000 +0900
+++ /usr/local/sbin/dtcpc 2012-02-16 08:06:45.000000000 +0900
@@ -286,7 +286,7 @@
end
def authenticate(user, seed, pass)
- m = MD5.new
+ m = Digest::MD5.new
m.update(user)
m.update(seed)
m.update(pass)
@@ -872,7 +872,7 @@
server = []
res.each do |i|
begin
- sock = TCPsocket.open(i[3], i[1])
+ sock = TCPSocket.open(i[3], i[1])
rescue
next
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment