Follow us on Twitter!
Imagination is more valuable than knowledge - Albert Einstein
Friday, April 25, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 15
Guests Online: 15
Members Online: 0

Registered Members: 82908
Newest Member: krishna7799
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

Windows python help.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 24-03-09 09:48
Anybody out there that could test this python code on a windows machine? It's designed to work on linux and windows. Works fine on linux, but I don't have a working windows box to run it on right now.

http://www.hellbo. . .ython.html


Author

RE: Windows python help.

clone4
Member



Posts: 586
Location: He is back and he's bad!
Joined: 25.11.07
Rank:
Mad User
Posted on 24-03-09 09:54
digitalchameleon wrote:
Anybody out there that could test this python code on a windows machine? It's designed to work on linux and windows. Works fine on linux, but I don't have a working windows box to run it on right now.

http://www.hellbo. . .ython.html


So far works great (Win XP), It'd probably deserver better output, but besides that nice scriptSmile


[img][/img]img164.imageshack.us/img164/5713/perlvl0.jpg

clone4.freehostia.com/ubuntu_3.png
spyware - "They see me trollin'..."
<yaragn> ever seen that movie? The Matrix?
<yaragn> with those green lines of flying text?
<yaragn> *THAT'S* Perl

clone_4@hotmail.com
Author

RE: Windows python help.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 24-03-09 09:56
Thanks. How is the speed, when compared to using the windows search?


Author

RE: Windows python help.

clone4
Member



Posts: 586
Location: He is back and he's bad!
Joined: 25.11.07
Rank:
Mad User
Posted on 24-03-09 10:04
digitalchameleon wrote:
Thanks. How is the speed, when compared to using the windows search?


For small and specific searches(like searching couple of folders it is slightly slower, but when you want to search globally this error is encountered:

Code

Traceback (most recent call last):
  File "test.py", line 51, in <module>
    FileCrawler.start(rootpath)
  File "test.py", line 30, in start
    self.__scanpath(self.futurepaths.pop())
  File "test.py", line 12, in __scanpath
    items=listdir(path)
WindowsError: [Error 5] Access is denied: 'C:\\System Volume Information/*.*'





This occurs if only drive directory is used as root dir, I think you would have to add special exceptions for windows searches for specific system files etc. to avoid this error


[img][/img]img164.imageshack.us/img164/5713/perlvl0.jpg

clone4.freehostia.com/ubuntu_3.png
spyware - "They see me trollin'..."
<yaragn> ever seen that movie? The Matrix?
<yaragn> with those green lines of flying text?
<yaragn> *THAT'S* Perl



Edited by clone4 on 24-03-09 10:06
clone_4@hotmail.com
Author

RE: Windows python help.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 24-03-09 10:43
Should be fixed now. Simple try/except was required. Thanks for all the help. Smile


Author

RE: Windows python help.

fuser
Member



Posts: 960
Location: in front of a computer (duh)
Joined: 05.04.07
Rank:
Mad User
Posted on 24-03-09 14:33
Just wondering, did you make this in Python 2.6 or Python 3? I wanted to make sure before I try running it.


img.userbarz.com/51/10006.png
img.userbarz.com/146/29144.gif
img.userbarz.com/99/19602.jpg
img.userbarz.com/4/600.png
img.userbarz.com/45/8814.gif
img360.imageshack.us/img360/9231/bfbarlr0.jpg
[url=http://userbarz.com/][img]ht
catinthecpu@hotmail.com
Author

RE: Windows python help.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 24-03-09 14:44
Well I ran it using Python 2.6 on Windows Vista and it works great .