Search:

Type: Posts; User: Loic

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    3,155

    Read and write binary file?

    Hi all, I am trying to write a struct to a file then read it again, but it cant get it to work. It compiles file, but when I try to read it, I don’t get anything. I don’t think that I am writing the...
  2. Replies
    11
    Views
    1,991

    Cheers, Thats worked :)

    Cheers, Thats worked :)
  3. Replies
    11
    Views
    1,991

    Cheers that looks good… ill have a read of that,...

    Cheers that looks good… ill have a read of that, but I still wouldn’t mind trying to get this other function I have to work.
  4. Replies
    11
    Views
    1,991

    Ah cheers for that. if I use that function with...

    Ah cheers for that. if I use that function with out the file type filtering the first two results are always “.” and “..”

    How could I get past this problem?
  5. Replies
    25
    Views
    6,567

    lol... sorry, stupid mistake :)

    lol... sorry, stupid mistake :)
  6. Replies
    11
    Views
    1,991

    ok so i have come up with this... int getdir...

    ok so i have come up with this...

    int getdir (std::string dir, std::vector<std::string> &files, std::string filetype)
    {
    DIR *dp;
    struct dirent *dirp;
    if((dp =...
  7. Replies
    9
    Views
    7,138

    im not to sure what you are asking for here......

    im not to sure what you are asking for here... but from what i understand this should be what you are looking for...



    include<iostrem.h>

    main()
    {
    cout << "hello c++\n";
    ...
  8. Replies
    25
    Views
    6,567

    I think I posed the same thread when I signed up...

    I think I posed the same thread when I signed up to these forums… but, what I ended up doing was passing an array to the function by reference… so something like this


    void start_rubik(char...
  9. Replies
    11
    Views
    1,991

    Filter directory search results.

    Hi all, I have a function that returns the contents of a directory in a string vector. It works perfectly but what I want to do is filter out the results for a certain file type. I just wanted to...
  10. Thanks laserlight, that worked perfectly :)

    Thanks laserlight, that worked perfectly :)
  11. Exceptions "try, catch, and throw Statements" ???

    Hi all, I wanted to create a program that will tell me how items I can push onto a string vector before the computer runs out of memory and crashes. Now I remember at uni we touched on Exceptions....
  12. Replies
    19
    Views
    6,552

    I read over that article your posted "The Oldest...

    I read over that article your posted "The Oldest Trick in the Book" cleared every thing up... i now have a much better understanding on how fuzzing, buffer overflows... and how a systems works......
  13. Replies
    19
    Views
    6,552

    The thread I read isn’t much more descriptive...

    The thread I read isn’t much more descriptive than my thread here... but fyi this is it exploiting the system() call in c?
  14. Replies
    19
    Views
    6,552

    Thanks everyone, you have cleared up everything....

    Thanks everyone, you have cleared up everything. I wasn’t to concerned on how to do it. I know that is well over my head. I just wanted to know if it was possible :)



    Yeah, alright… I’m a kiddo...
  15. Replies
    19
    Views
    6,552

    mmm ok, so it is possible... but i guess the how,...

    mmm ok, so it is possible... but i guess the how, and how to protect against it would be a little bit to in-depth/complex to discuss in this thread...
  16. Replies
    19
    Views
    6,552

    I have no idea what you are trying to do here......

    I have no idea what you are trying to do here... but it dose seem pointless...
  17. Replies
    19
    Views
    6,552

    system() vulnerable to a buffer overflow?

    Hi all, I came across a thread on another forum. And there was a thread about exploiting the “system()” call in C … one person pointed out that it may be vulnerable to a buffer overflow sort of...
  18. Replies
    21
    Views
    3,142

    after all that i find out that linux can do what...

    after all that i find out that linux can do what i want to do already... :(

    if anyone wanted to know....

    ##this will combine files 1,2,and 3 into the big file.
    bt~#cat file1.txt file2.txt...
  19. Replies
    21
    Views
    3,142

    sorry to be asking so many questions on this......

    sorry to be asking so many questions on this... but i am a little confused on how i would get that to acept a file??? ie using ifstream & ofstream...

    i think i understand how what you posted...
  20. Replies
    21
    Views
    3,142

    ok so i had a go to getting this to work, and in...

    ok so i had a go to getting this to work, and in theory what i have should merge 2 sorted list and filter out the doubles.... but for some reason it isnt working and i cant find whats wrong... :(...
  21. Replies
    21
    Views
    3,142

    Thanks every one for all your help... i think i...

    Thanks every one for all your help... i think i should be able to do it now...

    and for those of you who are interested in how i have wordlists that are so large... i am getting to from other...
  22. Replies
    21
    Views
    3,142

    well i don't ever intend for this program to be...

    well i don't ever intend for this program to be run on windows... as all of the tools i will use the word list for run under linux... ubuntu, or backtrack...

    but i think laserlight suggestion on...
  23. Replies
    21
    Views
    3,142

    I just read through that wikipedia article, and i...

    I just read through that wikipedia article, and i think i get the theory of it, but i am a bit unsure how i would go about implementing it... and wouldn't the data at some point be stored in the...
  24. Replies
    21
    Views
    3,142

    if its not going to store gb's of info, then the...

    if its not going to store gb's of info, then the program most likely will not work in a real world situation... is there a way to write the data to the hard drive???

    correct me if i am wrong, but...
  25. Replies
    21
    Views
    3,142

    alternate to an array???

    Hi all, i am trying to write a program to help me manage word lists, basically just merge 2 word lists together, and filter out the double words...

    but one problem i can see coming is that some...
Results 1 to 25 of 116
Page 1 of 5 1 2 3 4