Some Programs That might help you with your directory lists

Discussion in 'Directories' started by NullCode, Nov 25, 2007.

  1. #1
    Hi . I made some programs to help me with my directory lists.
    Well here is an example : i Have a list of directorys lets say 500+ , I used them all ( submitted my site to them ) , then i find a list of another 600+ directorys on the Internet , or on this forum .. and i want to check if some on the directorys in my 2nd list are in the 1st list too , and to delete them from my 2nd list , so i can have a fresh list of unsubmitted directorys .

    #include<stdio.h>
    #include<string.h>
    int main (int argc,char *argv[])
    {
    char sir[100],aux[100];
    char m[500][100];
    char a[500][100];
    FILE *f,*g,*h;
    int i,j,n1,n2,ok;
    strcpy(sir,argv[1]);
    strcat(sir,".txt");
    f=fopen(sir,"rt");
    strcpy(sir,argv[2]);
    strcat(sir,".txt");
    g=fopen(sir,"rt");
    strcpy(sir,"rez.txt");
    h=fopen(sir,"a");
    fprintf(h,"%s\n",argv[2]);
    n1=0;
    while (fgets(sir,100,f))
    {
    strcpy(m[n1],sir);
    n1++;
    }
    printf("%i ",n1);
    n2=0; while (fgets(sir,100,g))
    {
    strcpy(a[n2],sir);
    n2++;

    }printf("%i\n",n2);
    for (i=0;i<n2;i++)
    { ok=0;
    for (j=0;j<n1;j++)
    {
    if (strcmp(a,m[j])==0)
    {
    ok=1;
    j=n1;
    }
    }
    // printf("%i\n",ok);
    if (ok==0)
    {strcpy(aux,a);
    fprintf(h,"%s",aux);
    }
    }
    fclose(f);
    fclose(g);
    fclose(h);
    return 0;
    }

    If somebody needs this kind of program and does not know how to compile/run it please post here , i can upload on my site www.insecure.ro a .exe version with instruction .

    I hope it Helps ,
    NullCode @ www.insecure.ro

    P.S: If u need some simple programs i can make it for you , u can ask here or on www.insecure.ro , i will make maybe an english . An example program : let's say u have all links in a directory lists like this : digitalpoint.com , and u want it to be http://www.digitalpoint.com ( some programs do not accept links :/without "http://www ")
     
    NullCode, Nov 25, 2007 IP
  2. prometheus

    prometheus Banned

    Messages:
    880
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    congrats mate, nice code.
     
    prometheus, Nov 25, 2007 IP
  3. NullCode

    NullCode Member

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    thx dude..but seems noone is interested..strange
     
    NullCode, Nov 25, 2007 IP
  4. WatchOut

    WatchOut Guest

    Messages:
    1,359
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It looks good, however it would be much better if you made .exe programs and then released them, as I'm sure many of the users here don't even know how to execute this code. Also, the .exe that you described above that sets the http:// prefix in front of a URL is a good idea.

    Regards,
    Meti
     
    WatchOut, Nov 25, 2007 IP
  5. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #5
    you can't execute it, you need to compile it which will then make the executable .exe
     
    an0n, Nov 25, 2007 IP
  6. DownUnder

    DownUnder Well-Known Member

    Messages:
    1,251
    Likes Received:
    152
    Best Answers:
    0
    Trophy Points:
    105
    #6
    How is your magic looking for with something that can check every url in a directory to see if it is still active ?

    i am writing some stuff in excel but interested to see other options ?
     
    DownUnder, Nov 25, 2007 IP
  7. WatchOut

    WatchOut Guest

    Messages:
    1,359
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I like that idea, would be good if there was a software that checked your listings.

    Meti
     
    WatchOut, Nov 25, 2007 IP
  8. NullCode

    NullCode Member

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #8
    i'll compile it when i get home in a few hours ( 1 ,2 ) and i will write "how to use "
     
    NullCode, Nov 25, 2007 IP
  9. malcolm1

    malcolm1 Prominent Member

    Messages:
    7,148
    Likes Received:
    758
    Best Answers:
    0
    Trophy Points:
    310
    #9
    Im not a coder but wouldnt mind seeing that as well. :)

    To many times sites change or domains are dropped and would like to somehow be able to go threw them faster and more thorough then with validation for phpld.

    thx
    malcolm
     
    malcolm1, Nov 26, 2007 IP
  10. NullCode

    NullCode Member

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #10
    well sorry for the delay .. here are the programs :
    1. http://www.insecure.ro/upload/checklink.exe - it checks too see if the link already exists in the 1st directory list .
    Ex : U have a huge directory list u have submitter ,let's say "BIG.txt " , and u find on the Internet anoter list called " list1.txt " and you want to see if some links in list "list1.txt" already exist in "BIG.txt" .
    You use this program to check like this : checklink.exe BIG.TXT list1.txt
    the links that are not in big.txt but are in list1.txt will be printed in the file " rez.txt " ( a file will apear after you run the program)

    2. http://www.insecure.ro/upload/httpwww.exe

    This file will insert "http://www." in from of every link in your list ( in case u find a list that doesn't have http://www in from on the url ) .

    Usage : httpwww.exe list2.txt
     
    NullCode, Nov 28, 2007 IP
  11. DownUnder

    DownUnder Well-Known Member

    Messages:
    1,251
    Likes Received:
    152
    Best Answers:
    0
    Trophy Points:
    105
    #11
    Well here is a quick version from me, nothing flash but does the job.

    SETUP

    1. unzip to PC
    2. open (enable macro's) all safe and coding not hidden or locked ( run virus checker if you need peace of mind :cool:)

    using it ( nothing flash as trying to keep it simple )

    ADD URL

    1. copy n paste or type url into top section ( remove http:// if you pasted it direct ), in the comments section yo can add the full url of the page in your directory, or just make some notes ( optional )

    2. Add URL

    TEST URL

    1. dial up a number of URL's to test ( this must be less than or = to the total in the system )

    2. press Check URL

    once completed you can use the dial up option to see all status types

    NEW
    VERIFIED
    CRITICAL

    NOTES

    You can select in the top right corner to auto save and close, this option is great for a set n forget n go to bed, for example you can select it to update the next 100 links each night as an auto check.

    When running the test try to keep it at around or less than 100 tests at a time to let excel clear itself and not get clogged down ( save in between ). You can run more but may bog down if running into the 1000's per run

    The way it works is it adds new URLS to the bottom, then when testing it starts from the top, in theory always testing the oldest links first, once tetsted they are moved to the bottom creating a loop.

    To delete, simply select the row and delete.

    Do not run the URL check with the filter on.

    System will hold 65K links, but if you need more room simply copy n re name the files for catagories etc.

    Let me know if dramas.

    DU

    EDIT: if you already have a list of URL's in excel ( or other ) you can just dump them all into the bottom section, then you will need to add the word NEW to the STATUS coloumn and drag down. .You will need to manually remove any http:// prefix or it will show as a CRITICAL error.

    Just remove the http:// and re run if this happens.
     

    Attached Files:

    DownUnder, Nov 28, 2007 IP
  12. NullCode

    NullCode Member

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #12
    nice downunder
     
    NullCode, Feb 20, 2008 IP