Follow us on Twitter!
Hacking isn't just Computers & Exploits. It's a Philosophy. - Mr_Cheese
Thursday, April 17, 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: 19
Guests Online: 17
Members Online: 2

Registered Members: 82815
Newest Member: medjiking
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Page 1 of 2 1 2 >
Author

cx_freeze & py scripts

Demons Halo
Member



Posts: 261
Location: Sweden
Joined: 26.03.09
Rank:
Apprentice
Posted on 22-06-09 00:52
Hi.

In order to compile .py files to executable files, I use a program called cx_freeze, which is pretty similar to py2exe. Now the problem is that I wrote a small script (20 lines and no modules imported) and compiled it into exe file, but instead of having 1 file I ended up with 900 files at least... Is there any way to compile a py script so that I can skip having so many files?

Google didn't help out that much, all I could find is HOW TO compile -_-

Also, when I run the program, I get a cmd window in the background running at the same time, which I personally find very annoying... :/

Now is there anyone in here that is experienced with py -> exe that could help me out? Pfft

cheers!




Edited by Demons Halo on 22-06-09 14:13
base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts

korg
Admin from hell



Posts: 2798
Location: ENDING YOUR ONLINE EXPERIENCE!
Joined: 01.01.06
Rank:
God
Posted on 22-06-09 02:29
What version of python are you using. I had issues with py2exe with 3.0.


i57.photobucket.com/albums/g215/korg1269/shodan13.jpg

I deal in pain, All life I drain, I dominate, I seal your fate.
O R
Author

RE: cx_freeze & py scripts

Demons Halo
Member



Posts: 261
Location: Sweden
Joined: 26.03.09
Rank:
Apprentice
Posted on 22-06-09 06:54
I'm using 2.6.1 and I had issues with py2exe too. That's why I use cx_freeze


base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts

Demons Halo
Member



Posts: 261
Location: Sweden
Joined: 26.03.09
Rank:
Apprentice
Posted on 22-06-09 15:49
ok seriously.. I'm going CRAZY!!!

I've tried 3-4 different compilers and every piece of shit had more problems involved than the previous one -_- I'm currently trying bbfreeze but It seems like if a module is missing. Fuck me sideways...

Please if anyone has some sort of idea about how to make a single exe file, spill it!

and yes spyware.. I've googled it, yet no luck :/


base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 22-06-09 15:59
Lol compiling python.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: cx_freeze & py scripts

Demons Halo
Member



Posts: 261
Location: Sweden
Joined: 26.03.09
Rank:
Apprentice
Posted on 22-06-09 16:05
spyware wrote:
Lol compiling python.


don't lol Angry

I need to send the program to a friend of mine who has been waiting Sad he can't run py files ^^




Edited by Demons Halo on 22-06-09 16:05
base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts

ranma
Member



Posts: 273
Location: Behind a sphere
Joined: 27.08.05
Rank:
Active User
Posted on 22-06-09 17:43
Linux compile?


Wisdom spared is wisdom squared.
Author

RE: cx_freeze & py scripts

Demons Halo
Member



Posts: 261
Location: Sweden
Joined: 26.03.09
Rank:
Apprentice
Posted on 22-06-09 17:45
ranma wrote:
Linux compile?

grrr...
screw linux, Win XP > ALL!!!


base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts

SySTeM
Member

Your avatar

Posts: 1524
Location: England, UK
Joined: 27.07.05
Rank:
HBH Guru
Posted on 22-06-09 17:53
Demons Halo wrote:
he can't run py files ^^


Options:

a) Tell him to download the Python exe, and run it CLI style.
b) Write it in C/C++ ^_^


img138.imageshack.us/img138/6527/sig2ak1.jpg
www.hellboundhackers.org/sig/r/2783.png

http://www.elites0ft.com/
Author

RE: cx_freeze & py scripts


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 22-06-09 18:01
system_meltdown wrote:
Demons Halo wrote:
he can't run py files ^^


Options:

a) Tell him to download the Python exe, and run it CLI style.
b) Write it in C/C++ ^_^


+1 most GUI based apps(i don't make very often, if at all) i primarily just code in C, or start in perl/python and recode in C


Author

RE: cx_freeze & py scripts

Demons Halo
Member



Posts: 261
Location: Sweden
Joined: 26.03.09
Rank:
Apprentice
Posted on 22-06-09 18:16
system_meltdown wrote:
Demons Halo wrote:
he can't run py files ^^


Options:

a) Tell him to download the Python exe, and run it CLI style.
b) Write it in C/C++ ^_^


a) sounds good ^^ 2 files would do the trick =D
b) no can do :/ I'm an ignorant fuck when it comes to C/C++ -_-


base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 22-06-09 21:51
Demons Halo wrote:
system_meltdown wrote:
Demons Halo wrote:
he can't run py files ^^


Options:

a) Tell him to download the Python exe, and run it CLI style.
b) Write it in C/C++ ^_^


a) sounds good ^^ 2 files would do the trick =D
b) no can do :/ I'm an ignorant fuck when it comes to C/C++ -_-


Learn?


Author

RE: cx_freeze & py scripts

Demons Halo
Member



Posts: 261
Location: Sweden
Joined: 26.03.09
Rank:
Apprentice
Posted on 22-06-09 21:58
I'm learning python right now so I can't keep up with 2 languages yet. I'm concentrating on python GUI/Pygame scripts, after that I'll take a look @ C/C++

Which one is more similar to python?
For some reason I find C++ more like python but I might be wrong Pfft care to explain the difference?
Looking at the codes in the code bank I'd say that one of them is OO while the other is direct coding, is this true or am I delusional?


base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts

ranma
Member



Posts: 273
Location: Behind a sphere
Joined: 27.08.05
Rank:
Active User
Posted on 22-06-09 22:06
C and C++, to the lower-level user pretty much no difference. C++ does have classes and structs, though, which are good. So go with C++.


Wisdom spared is wisdom squared.
Author

RE: cx_freeze & py scripts

Demons Halo
Member



Posts: 261
Location: Sweden
Joined: 26.03.09
Rank:
Apprentice
Posted on 22-06-09 22:16
ranma wrote:
C and C++, to the lower-level user pretty much no difference. C++ does have classes and structs, though, which are good. So go with C++.


mm sounds nice. Although I don't use classes really Pfft so if that is the only difference, I should go for the one with the easiest syntax (even though both are similar).


base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts

ranma
Member



Posts: 273
Location: Behind a sphere
Joined: 27.08.05
Rank:
Active User
Posted on 22-06-09 22:38
Ooooo Pfft
lol. Everyone uses classes. SOOOO useful.


Wisdom spared is wisdom squared.
Author

RE: cx_freeze & py scripts

Demons Halo
Member



Posts: 261
Location: Sweden
Joined: 26.03.09
Rank:
Apprentice
Posted on 22-06-09 22:49
In case you're a pro maybe Pfft importing the same modules all the time etc. but In my case all I need is a py document, a pen and a paper!!!

works just fine =D


base_dropper@hotmail.com www.demonshalo.com
Author

RE: cx_freeze & py scripts


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 22-06-09 23:30
Demons Halo wrote:
I'm learning python right now so I can't keep up with 2 languages yet. I'm concentrating on python GUI/Pygame scripts, after that I'll take a look @ C/C++

Which one is more similar to python?
For some reason I find C++ more like python but I might be wrong Pfft care to explain the difference?
Looking at the codes in the code bank I'd say that one of them is OO while the other is direct coding, is this true or am I delusional?


Both Python and C++ are OOP(Object Oriented Programming) languages. If you mean what language in general is most similiar to python...im not sure pythons similiar mix between C++ but with simplicity similiar to Perl. As far as closes to C++ syntax wise PHP is VERY similiar


Author

RE: cx_freeze & py scripts

ranma
Member



Posts: 273
Location: Behind a sphere
Joined: 27.08.05
Rank:
Active User
Posted on 22-06-09 23:45
Oh yeah, C++, Php, and javascript are all really similar, that's why I always suggest taking them together. Well, first javascript, then php, then c++.


Wisdom spared is wisdom squared.
Author

RE: cx_freeze & py scripts

Demons Halo
Member



Posts: 261
Location: Sweden
Joined: 26.03.09
Rank:
Apprentice
Posted on 23-06-09 00:00
S1L3NTKn1GhT wrote:
Demons Halo wrote:
I'm learning python right now so I can't keep up with 2 languages yet. I'm concentrating on python GUI/Pygame scripts, after that I'll take a look @ C/C++

Which one is more similar to python?
For some reason I find C++ more like python but I might be wrong Pfft care to explain the difference?
Looking at the codes in the code bank I'd say that one of them is OO while the other is direct coding, is this true or am I delusional?


Both Python and C++ are OOP(Object Oriented Programming) languages. If you mean what language in general is most similiar to python...im not sure pythons similiar mix between C++ but with simplicity similiar to Perl. As far as closes to C++ syntax wise PHP is VERY similiar


So if I dive into C++ later on, I'll get a free PHP ride as well?? Not a bad deal if you ask me ^^ C++ it is then =D

This thread is way off topic now, but instead of starting a new one I'll just ask here...

I've worked with the following python sections:
- Basics
- Tkinter (GUI)
- Pygame
- Time challenges (Urllibs and cookies handling etc.)
- Math problems (Project Euler)
- Regular expressions (not that much actually)

Steps left:
- Another GUI module.
- Classes (I hate them but still...)
- Sockets
- Multithreading (not that necessary but still...)

Except for these 3 steps, what else should I start reading about?

Oh yeah, C++, Php, and javascblockedript are all really similar, that's why I always suggest taking them together. Well, first javascblockedript, then php, then c++.


Well I have basic knowledge of JS, I did JS challenges 1-15 without any problems, yet I still have not tried to write my own script Pfft maybe I should give it a shot =D




Edited by Demons Halo on 23-06-09 00:02
base_dropper@hotmail.com www.demonshalo.com
Page 1 of 2 1 2 >