Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Starting Python
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
lbcxcuhzin
Cheater
Reputation: 0

Joined: 04 Sep 2007
Posts: 42

PostPosted: Thu Nov 08, 2007 1:13 am    Post subject: Starting Python Reply with quote

I am trying to get into programming as a career. I decided to start with python as my very first language ( Any suggestions for first langauge?). I am currently starting on python for Linux (Utunbu), I am new to both, i just learned about the print command,variables, and raw_inputs for python. I guess my skills with Linux will grow. It is a totally different experience than windows. Are their any recommended tutorials for python? If not, i will just use the ones i find on google. Thanks!
_________________
Back to top
View user's profile Send private message
Localhost
I post too much
Reputation: 0

Joined: 28 Apr 2007
Posts: 3402

PostPosted: Thu Nov 08, 2007 4:15 am    Post subject: Reply with quote

First, i would like to say, good job on using Ubuntu (thats how i believe you spell it) and python is a very good language to start with. IF you want to get into a programming career you MUST know c/c++. I have seen many requirment sheets and they all want c++ or c. I would suggest learning multiple languages (Python, C/c++, Java ect). If tutorials you want:

_,~{Python}~,_

- http://python.org/doc/current/tut/tut.html

- http://www.python.org/doc/Intros.html

- http://hetland.org/python/instant-python

- http://www.networkcomputing.com/unixworld/tutorial/005/005.html

_________________
Back to top
View user's profile Send private message MSN Messenger
goldengold
Grandmaster Cheater Supreme
Reputation: -1

Joined: 11 Nov 2006
Posts: 1841
Location: -.-

PostPosted: Thu Nov 08, 2007 11:24 am    Post subject: Reply with quote

If you have programming as a career what do you exactly do?

Just program things for companies and shit?

_________________
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Thu Nov 08, 2007 12:06 pm    Post subject: Reply with quote

goldengold wrote:
If you have programming as a career what do you exactly do?

Just program things for companies and shit?



Software House:
Customer Phones up
Customer gives program requirements
Team programs the program to meet the requirements
De-Bugging is done
Program is sold
Back to top
View user's profile Send private message MSN Messenger
Tosy
How do I cheat?
Reputation: 0

Joined: 20 Jul 2007
Posts: 5

PostPosted: Thu Nov 08, 2007 2:45 pm    Post subject: Reply with quote

If u want to be rich via coding u must learn C
For Fun - C#,VB,Delphi
For normal programs : C++
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Nov 08, 2007 2:53 pm    Post subject: Reply with quote

_ToSy_ wrote:
If u want to be rich via coding u must learn C
For Fun - C#,VB,Delphi
For normal programs : C++


No, not really.
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Thu Nov 08, 2007 4:27 pm    Post subject: Reply with quote

_ToSy_ wrote:
If u want to be rich via coding u must learn C
For Fun - C#,VB,Delphi
For normal programs : C++


Progress, Oracle or SQL to be honest.
Back to top
View user's profile Send private message MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Nov 08, 2007 4:57 pm    Post subject: Reply with quote

_ToSy_ wrote:
If u want to be rich via coding u must learn C
For Fun - C#,VB,Delphi
For normal programs : C++


Each language has it's own main purpose. Getting 'rich' from programming doesn't have much to do with what language you know, but instead, in what you do with your language. Yes, C/C++ might be the more widely used language for mainstream things, but, just as much as C/C++ is used, so are the other languages.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
lbcxcuhzin
Cheater
Reputation: 0

Joined: 04 Sep 2007
Posts: 42

PostPosted: Fri Nov 09, 2007 8:29 am    Post subject: Reply with quote

I appreciate the help guys. =)
_________________
Back to top
View user's profile Send private message
TerryDonahugh
Master Cheater
Reputation: 0

Joined: 12 Sep 2007
Posts: 412
Location: .nl

PostPosted: Fri Nov 09, 2007 8:45 am    Post subject: Reply with quote

_ToSy_ wrote:
If u want to be rich via coding u must learn C
For Fun - C#,VB,Delphi
For normal programs : C++


Programmers usually are not rich. Consultants and managers are :)

Most programming jobs require expertise in C# and related .net technologies.

I recently got hired as a Python/Oracle/C++ programmer (my first real job). The company I work for prefers a Linux environment and Python is used for all the client sided (GUI-based) tools.

Python is a great first language!
Back to top
View user's profile Send private message Send e-mail
Tosy
How do I cheat?
Reputation: 0

Joined: 20 Jul 2007
Posts: 5

PostPosted: Fri Nov 09, 2007 9:54 am    Post subject: Reply with quote

Well ok here a NEW

For Rich:HTML(Yes HTML) and C
For Serious program : C++,C#
For Hacking : Perl,VB,C++,C,PHP

Well I know Perl like 80% of it xD
Back to top
View user's profile Send private message
goldengold
Grandmaster Cheater Supreme
Reputation: -1

Joined: 11 Nov 2006
Posts: 1841
Location: -.-

PostPosted: Fri Nov 09, 2007 1:12 pm    Post subject: Reply with quote

You cant know a % of a language.

It's like saying i know 80% of math

_________________
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
TheSorc3r3r
I post too much
Reputation: 0

Joined: 06 Sep 2006
Posts: 2404

PostPosted: Fri Nov 09, 2007 1:38 pm    Post subject: Reply with quote

this is all you need to start.
_________________


Don't laugh, I'm still learning photoshop!
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Fri Nov 09, 2007 2:43 pm    Post subject: Reply with quote

_ToSy_ wrote:

For Hacking : Perl,VB,C++,C,PHP


Nope.

Anything that has access to API Calls can be used to hack.

Delphi's pretty nice for hacking (hence CE, though it could have been made in pretty much any language), as is C# (which I prefer, but once again, can be pretty much any language).

C# Hacking:

Code:


//This was created by gamesguru

        [DllImport("kernel32.dll")]
        public static extern Int32 ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, [In, Out] byte[] buffer, UInt32 size, out IntPtr lpNumberOfBytesRead);


        [DllImport("kernel32.dll")]
        public static extern Int32 WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, [In, Out] byte[] buffer, UInt32 size, out IntPtr lpNumberOfBytesWritten);

        public byte[] ReadProcessMemory(IntPtr MemoryAddress, uint bytesToRead, out int bytesRead)
        {
            byte[] buffer = new byte[bytesToRead];

            IntPtr ptrBytesRead;
            ProcessMemoryReaderApi.ReadProcessMemory(m_hProcess, MemoryAddress, buffer, bytesToRead, out ptrBytesRead);

            if (bytesToRead != (uint)ptrBytesRead)
            {               
                //If the above statement is true, then this is unused memory, so we should return null
                bytesRead = ptrBytesRead.ToInt32();
                return null;
            }

            bytesRead = ptrBytesRead.ToInt32();

            return buffer;
        }

        public void WriteProcessMemory(IntPtr MemoryAddress, byte[] bytesToWrite, out int bytesWritten)
        {
            IntPtr ptrBytesWritten;
            ProcessMemoryReaderApi.WriteProcessMemory(m_hProcess, MemoryAddress, bytesToWrite, (uint)bytesToWrite.Length, out ptrBytesWritten);

            bytesWritten = ptrBytesWritten.ToInt32();
        }


Using that^

Code:

//This was created by me

        private void UpdateValue(Address a, System.Diagnostics.Process[] myprocesses, bool Frozen)
        {
            int BytesRead;
            uint type; //Type is going to be for how many bytes to look at
            switch (a.ValueType)
            {
                case "4 Bytes":
                    type = 4; //4 bytes to look at
                    break;
                case "2 Bytes":
                    type = 2; //2...
                    break;
                case "Byte":
                    type = 1;
                    break;
                case "8 Bytes":
                    type = 8;
                    break;
                case "Double":
                    type = 8;
                    break;
                case "Float":
                    type = 8;
                    break;
                default:
                    type = 4;
                    break;
            }

            int theAddy = int.Parse(a.HexAddress, System.Globalization.NumberStyles.AllowHexSpecifier);

            #region Frozen
            if (Frozen)
            {
                int zeAddyForEditing = int.Parse(a.HexAddress, System.Globalization.NumberStyles.AllowHexSpecifier);

                byte zeUberValue1 = byte.Parse(a.LastKnownValue); //1 Byte
                short zeUberValue2 = short.Parse(a.LastKnownValue); //2 Bytes
                int zeUberValue4 = int.Parse(a.LastKnownValue); //4 Bytes
                long zeUberValue8 = long.Parse(a.LastKnownValue); //8 Bytes
                double zeUberValueD = double.Parse(a.LastKnownValue); //Double
                float zeUberValueF = float.Parse(a.LastKnownValue); //Float                 

                int zeBytesWritten;
                byte[] zeValueByte = null;

                preader.ReadProcess = myprocesses[0];
                preader.OpenProcess();

                switch (a.ValueType)
                {
                    case "Byte":
                        zeValueByte = BitConverter.GetBytes(zeUberValue1);
                        break;
                    case "2 Bytes":
                        zeValueByte = BitConverter.GetBytes(zeUberValue2);
                        break;
                    case "4 Bytes":
                        zeValueByte = BitConverter.GetBytes(zeUberValue4);
                        break;
                    case "8 Bytes":
                        zeValueByte = BitConverter.GetBytes(zeUberValue8);
                        break;
                    case "Float":
                        zeValueByte = BitConverter.GetBytes(zeUberValueF);
                        break;
                    case "Double":
                        zeValueByte = BitConverter.GetBytes(zeUberValueD);
                        break;
                }


                preader.WriteProcessMemory((IntPtr)zeAddyForEditing, zeValueByte, out zeBytesWritten);
            }

            #endregion

            else
            {
                byte[] Memory = preader.ReadProcessMemory((IntPtr)theAddy, type, out BytesRead);
                if (Memory == null)
                {
                    return;
                }
                int MemoryAddressValue = Memory[0];

                a.LastKnownValue = MemoryAddressValue.ToString();
            }
        }


These are just snippets of code, but you get the point, right?

Any program can really be used to do anything--it's simply which the programmer prefers.
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Fri Nov 09, 2007 3:31 pm    Post subject: Reply with quote

_ToSy_ wrote:
For Hacking : Perl,VB,C++,C,PHP


VB? What are you on? Confused (Flash games do not count)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites