Server IP : 103.169.32.36 / Your IP : 216.73.217.13 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/ |
Upload File : |
| Current File : /usr/libexec/urlgrabber-ext-down |
#! /usr/bin/python
# A very simple external downloader
# Copyright 2011-2012 Zdenek Pavlas
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
import time, os, errno, sys
from urlgrabber.grabber import \
_readlines, URLGrabberOptions, _loads, \
PyCurlFileObject, URLGrabError
def write(fmt, *arg):
try: os.write(1, fmt % arg)
except OSError, e:
if e.args[0] != errno.EPIPE: raise
sys.exit(1)
class ProxyProgress:
def start(self, *d1, **d2):
self.next_update = 0
def update(self, _amount_read):
t = time.time()
if t < self.next_update: return
self.next_update = t + 0.31
write('%d %d\n', self._id, _amount_read)
def main():
import signal
signal.signal(signal.SIGINT, lambda n, f: sys.exit(1))
cnt = 0
while True:
lines = _readlines(0)
if not lines: break
for line in lines:
cnt += 1
opts = URLGrabberOptions()
opts._id = cnt
for k in line.split(' '):
k, v = k.split('=', 1)
setattr(opts, k, _loads(v))
if opts.progress_obj:
opts.progress_obj = ProxyProgress()
opts.progress_obj._id = cnt
dlsz = dltm = 0
try:
fo = PyCurlFileObject(opts.url, opts.filename, opts)
fo._do_grab()
fo.fo.close()
size = fo._amount_read
if fo._tm_last:
dlsz = fo._tm_last[0] - fo._tm_first[0]
dltm = fo._tm_last[1] - fo._tm_first[1]
ug_err = 'OK'
except URLGrabError, e:
size = 0
ug_err = '%d %d %s' % (e.errno, getattr(e, 'code', 0), e.strerror)
write('%d %d %d %.3f %s\n', opts._id, size, dlsz, dltm, ug_err)
if __name__ == '__main__':
main()
| N4m3 |
5!z3 |
L45t M0d!f!3d |
0wn3r / Gr0up |
P3Rm!55!0n5 |
0pt!0n5 |
| .. |
-- |
December 20 2023 04:35:41 |
0 / 0 |
0755 |
|
| awk |
-- |
December 20 2023 04:35:48 |
0 / 0 |
0755 |
|
| coreutils |
-- |
December 20 2023 04:52:56 |
0 / 0 |
0755 |
|
| dbus-1 |
-- |
December 20 2023 04:36:18 |
0 / 0 |
0755 |
|
| gcc |
-- |
January 19 2024 08:12:44 |
0 / 0 |
0755 |
|
| getconf |
-- |
September 29 2025 07:00:12 |
0 / 0 |
0755 |
|
| grubby |
-- |
December 20 2023 04:36:11 |
0 / 0 |
0755 |
|
| initscripts |
-- |
December 20 2023 04:53:11 |
0 / 0 |
0755 |
|
| linux-boot-probes |
-- |
December 20 2023 04:36:19 |
0 / 0 |
0755 |
|
| man-db |
-- |
December 20 2023 04:36:34 |
0 / 0 |
0755 |
|
| microcode_ctl |
-- |
December 20 2023 04:53:20 |
0 / 0 |
0755 |
|
| openldap |
-- |
December 20 2023 04:53:09 |
0 / 0 |
0755 |
|
| openssh |
-- |
December 20 2023 04:53:14 |
0 / 0 |
0755 |
|
| os-probes |
-- |
December 20 2023 04:36:19 |
0 / 0 |
0755 |
|
| p11-kit |
-- |
December 20 2023 04:36:04 |
0 / 0 |
0755 |
|
| plymouth |
-- |
October 01 2020 16:53:19 |
0 / 0 |
0755 |
|
| postfix |
-- |
December 20 2023 04:36:27 |
0 / 0 |
0755 |
|
| selinux |
-- |
December 20 2023 04:53:29 |
0 / 0 |
0755 |
|
| sudo |
-- |
December 20 2023 04:53:27 |
0 / 0 |
0755 |
|
| tuned |
-- |
December 20 2023 04:53:14 |
0 / 0 |
0755 |
|
| utempter |
-- |
December 20 2023 04:36:10 |
0 / 35 |
0755 |
|
| | | | | |
| ebtables |
1.658 KB |
April 11 2018 02:44:54 |
0 / 0 |
0755 |
|
| gnupg-pcsc-wrapper |
19.305 KB |
July 13 2018 13:05:25 |
0 / 0 |
0755 |
|
| gpg-check-pattern |
102.945 KB |
July 13 2018 13:05:25 |
0 / 0 |
0755 |
|
| gpg-preset-passphrase |
86.391 KB |
July 13 2018 13:05:25 |
0 / 0 |
0755 |
|
| gpg-protect-tool |
185.57 KB |
July 13 2018 13:05:25 |
0 / 0 |
0755 |
|
| gpg2keys_curl |
44.813 KB |
July 13 2018 13:05:25 |
0 / 0 |
0755 |
|
| gpg2keys_finger |
61.336 KB |
July 13 2018 13:05:25 |
0 / 0 |
0755 |
|
| gpg2keys_hkp |
53 KB |
July 13 2018 13:05:25 |
0 / 0 |
0755 |
|
| gpg2keys_ldap |
61.016 KB |
July 13 2018 13:05:25 |
0 / 0 |
0755 |
|
| grepconf.sh |
0.247 KB |
March 24 2017 16:39:09 |
0 / 0 |
0755 |
|
| httpd-ssl-pass-dialog |
0.079 KB |
May 30 2023 14:01:46 |
0 / 0 |
0755 |
|
| newns |
7.031 KB |
November 06 2016 03:30:02 |
0 / 0 |
0755 |
|
| nm-dhcp-helper |
15.117 KB |
November 16 2020 16:15:18 |
0 / 0 |
0755 |
|
| nm-dispatcher |
47.695 KB |
November 16 2020 16:15:18 |
0 / 0 |
0755 |
|
| nm-iface-helper |
839.359 KB |
November 16 2020 16:15:18 |
0 / 0 |
0755 |
|
| nm-ifdown |
0.151 KB |
November 16 2020 16:15:04 |
0 / 0 |
0755 |
|
| nm-ifup |
0.149 KB |
November 16 2020 16:15:04 |
0 / 0 |
0755 |
|
| platform-python |
6.977 KB |
November 14 2023 16:14:39 |
0 / 0 |
0755 |
|
| urlgrabber-ext-down |
2.542 KB |
August 26 2013 07:09:07 |
0 / 0 |
0755 |
|
| virt-what-cpuid-helper |
7.023 KB |
August 31 2021 14:47:35 |
0 / 0 |
0755 |
|