def run():
    y = pyarad.pyarad()
    y.init_network_socket("127.0.0.1")
    print y.scan_file("/tmp/test.exe")
    y.close()
import pyarad
from multiprocessing import Process
import sys

# Method 1


def run():
    y = pyarad.pyarad()
    y.init_network_socket("127.0.0.1")
    print y.scan_file("/tmp/test.exe")
    y.close()


for i in range(1000):
    p = Process(target=run, args=())
    p.start()

###

# Method 2

y = pyarad.pyarad()
y.init_network_socket("127.0.0.1")
for i in range(1000):
    print y.scan_file("/tmp/test.exe")
y.close()

###
Exemplo n.º 3
0
def run():
    y = pyarad.pyarad()
    y.init_unix_socket()
    print y.scan_file("/tmp/test.exe")
    y.close()
Exemplo n.º 4
0
def run():
	y = pyarad.pyarad()
	y.init_network_socket("127.0.0.1")
	print y.scan_file("/tmp/test.exe")
	y.close()
Exemplo n.º 5
0
#!/usr/bin/env python

import pyarad
from multiprocessing import Process
import sys

# Method 1

def run():
	y = pyarad.pyarad()
	y.init_network_socket("127.0.0.1")
	print y.scan_file("/tmp/test.exe")
	y.close()

for i in range(1000):
	p = Process(target=run, args=())
	p.start()

###

# Method 2

y = pyarad.pyarad()
y.init_network_socket("127.0.0.1")
for i in range(1000):
	print y.scan_file("/tmp/test.exe")
y.close()

###
Exemplo n.º 6
0
def run():
	y = pyarad.pyarad()
	y.init_unix_socket()
	print y.scan_file("/tmp/test.exe")
	y.close()