Search found 11 matches

by datachild
Fri Jul 02, 2010 11:23 am
Forum: Coding Questions
Topic: Read Binary File to String Problem
Replies: 13
Views: 4111

Re: Read Binary File to String Problem

thx cas but this wont work for me because ur sample wont support big files...

there was a example by kenmo...


Procedure.i ReadBlock(File.i, Size.i)
Protected BytesRead.i, *Block.i = #Null

If (IsFile(File))
*Block = AllocateMemory(Size)
If (*Block)
BytesRead = ReadData(File, *Block, Size ...
by datachild
Thu Jul 01, 2010 9:11 pm
Forum: Coding Questions
Topic: Read Binary File to String Problem
Replies: 13
Views: 4111

Re: Read Binary File to String Problem

I dont need ftp filetransfer...
im looking for how to transfer files over the network...
using NetworkSendData ... without the need of encoding it in base64...
by datachild
Thu Jul 01, 2010 5:54 pm
Forum: Coding Questions
Topic: check file in memory after launch
Replies: 2
Views: 646

Re: check file in memory after launch

who knows it is passible made some check in memory? some viruses can inject in process in memory - it means CRC or MD5 or how it names of this process in memory will be change - it means i can catch this difference and made some alert for user.
and one more - this "CRC" in memory the same in XP and ...
by datachild
Thu Jul 01, 2010 5:42 pm
Forum: Coding Questions
Topic: Read Binary File to String Problem
Replies: 13
Views: 4111

Re: Read Binary File to String Problem


EDIT - just realized a possible error. If the final block doesn't fill the entire 1024 bytes, it will have the previous block's data leftover (using the method in this post). This will give you the wrong base64 string..... so your way is fine. But if speed becomes an issue, consider my tips and ...
by datachild
Sun Jun 13, 2010 3:20 pm
Forum: Coding Questions
Topic: Making a exe crypter (how to?)
Replies: 27
Views: 6616

Re: Making a exe crypter (how to?)

elfo116 wrote:Hello datachild,
Some like this ? yup...
if exe3 is malicious code, when run crypted.exe would not be detected by antivirus ?
This function would be Runtime or Scantime ?
Thanks !
It would be scantime otherwise u have to inject the crypted exe ....

So u want a crypter for malicious purpose ? -.-
by datachild
Sun Jun 13, 2010 2:17 pm
Forum: Coding Questions
Topic: RunProgram - prevent messagebox from appearing?
Replies: 5
Views: 1374

Re: RunProgram - prevent messagebox from appearing?

Check first if the file is there/exists before try to run anything ...
:)
by datachild
Sun Jun 13, 2010 11:23 am
Forum: Coding Questions
Topic: Unicode?
Replies: 6
Views: 1534

Re: Unicode?

As far i know...
Unicode encoding is not Country related that means that every Char got its own Code...
Ascii limited and also the encoding it different in each Country ...

anyway...

datachild
by datachild
Sun Jun 13, 2010 11:16 am
Forum: Coding Questions
Topic: Making a exe crypter (how to?)
Replies: 27
Views: 6616

Re: Making a exe crypter (how to?)

Basic Crypter with EOF

Crypters are used by malware to avoid detection ...
also they are used legally to Protect Software and data ...

The most simplest Crypter is a Crypter wich stores the crypted file at the EOF (EndOfFile) and decrypts the file to the hard drive to use it ...
These Crypters are ...
by datachild
Sun Jun 13, 2010 10:46 am
Forum: Coding Questions
Topic: Read Binary File to String Problem
Replies: 13
Views: 4111

Re: Read Binary File to String Problem

thx kenmo i got it working by implementing a simple base64 encoding like DarkPlayer and u said :)
however this should be away from professional code but iam still learning... :>

Heres is my solution for those who interrested !
... maybe somone can improve it :P

If ReadFile(0,sfile.s);sfile.s ...
by datachild
Sat Jun 12, 2010 9:14 pm
Forum: Coding Questions
Topic: Read Binary File to String Problem
Replies: 13
Views: 4111

Re: Read Binary File to String Problem

thx DarkPlayer and kenmo

How could i encode the data with base64 before using Peeks() ?

*Block = AllocateMemory(Size)
BytesRead = ReadData(File, *Block, Size);< -BASE64 ?


I dont really know how to implement the ur solution kenmo :)
Does it work like this :

Procedure.i ReadBlock(File.i, Size ...
by datachild
Sat Jun 12, 2010 8:08 pm
Forum: Coding Questions
Topic: Read Binary File to String Problem
Replies: 13
Views: 4111

Read Binary File to String Problem

Hey im new on the board and purebasic :P

I hope u can help me :)
I want to open a BINARY file and read the data into blocks as STRING (size 1022) ... *later it should be used in a TCP Filetransfer)
The problem is PeekS seem to ignore special characters it only returns "MZ" with a textfile *.TXT all ...