Trouver une ressource (Nouvelle version du moteur, plus rapide & pertinent, essayez le !)
Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum.
Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !
..:: IP CRYPTER ::..
Information sur la source
Description
encore un autre crypteur d'IP...
j'en ai deja vu 2 sur le site mais j'ajoute le mien quand meme!
G esayé d'utiliser les pointeurs au maximum...
G pas fait cette source pour vous mais pour moi, pour m'entrainer, donc, je la soumet ici uniquement car ça px aider certains.
j'anticipe la question;
l'ascii, je le fait avec ultraedit, en mode view>OEM.
caracteres utilisés :: °±²ÛÜþß¹º»¼ÈÉÊËÌÍÎ
(là vous verrez rien, C en dos ou en OEM que l'on vois les caracteres comme il faut!)
Source
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
-
- /* Nombres saisis*/
- int *IP1,*IP2,*IP3,*IP4;
- int *_ip1,*_ip2,*_ip3,*_ip4;
-
- int multiplic(int x, int y) {
- return (x*y);
- }
-
- int add(int a, int b, int c, int d) {
- return (a+b+c+d);
- }
-
- main (int argc, char **argv) {
- /* L'ASCII du programme */
- printf(" ÉËÍÍÍÍÍÍÍÍÍËÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍËÍÍÍÍÍËÍÍÍÍÍÍÍÍÍË»\n");
- printf(" ºº º [!] º WARNING! º [!] º ºº\n");
- printf(" ÌÊÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍʹ\n");
- printf(" º ÜÜÜÜÜÜÜÜÜÜÜÜÜÜ ÜÜ ÜÜ ÜÜÜÜÜÜÜÜÜÜ º\n");
- printf(" º Û²±±±±±±±±²²²ÛÜÜÜÜÛ±°Û Û±°ÛÛ±±±±±±±±°Û º\n");
- printf(" º Û²²²ÛÛ²²±Û°°°Û²²²²Û²±°ÛÜ Û±°Û²²±°°°°°°°Û º\n");
- printf(" º ßßß Û²²±°ÛÛ²²±±±°ÛÛ²±±°Û±±°Û²±°ßÛßßÛÜÜÛ º\n");
- printf(" º Û²²±°Û²²±°ßÛ±°ÛßÛ²²±±°Û Û²±°ÛÜÜÜÜÜ º\n");
- printf(" º Û²²±°Û²²±°ÜÛ±°Û ßßÛ²±°Û Û²²±±±±±±°Û º\n");
- printf(" º Û²²±±°Û²²²²²±°Û Û²±°Û Û°°°°°±±°Û º\n");
- printf(" º Û²±±±±°Û±±±±±°Û Û²±°ÛÛÜÜÛÜÜÜÜ ±°°Û º\n");
- printf(" º Û°°°°°°ÛÛ°°°°°Û Û°°°Û Û°°°°°°°°°°Û º\n");
- printf(" º ßßßßßß ßßßßß ßßßß ßßßßßßßßßß º\n");
- printf(" ÈÍÍÍÍÍÍÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍÍÍͼ\n");
- printf(" ÉÍÍÍÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍÍÍÍ» \n");
- printf(" º www.toys.fr.fm º \n");
- printf(" ºÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿º \n");
- printf(" º³ Au-del? du r?el, ³º \n");
- printf(" º³ Au-del? des lois universelles, ³º \n");
- printf(" º³ Au-del? du r?el, ³º \n");
- printf(" º³ Au-del? des fronti?res mat?rielles!!!! ³º \n");
- printf(" ºÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙº \n");
- printf(" ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ \n");
- printf("[press enter]");
- getch();
- printf("\n ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»\n");
- printf(" º°°°°°±±²²²²±±±±±±±±±±±±²²²²±±°°°°°°°°°°°°±²²²²²²²²²²²²±°°°°°°°°°°°°°°°º\n");
- printf(" º°°°°±±±²ÛÛ²²²²²²²²²²²²²²ÛÛ²±±±°°°°°°°°°±±²²ÛÛÛÛÛÛÛÛÛÛ²²±±°°°°°°°°°°°°°º\n");
- printf(" º°°°°°±±²²ßÛ²²ÉÍÍÍÍÍÍ»²²Ûß²²±±°°°°°°°°±±²²ÛÛÛÉÍÍÍÍÍÍ»ÛÛÛ²²±±°°°°°°°°°°°º\n");
- printf(" º°°°°°°±±²²ßÛɼ È»Ûß²²±±°°°°°°°°±±²²ÛÛÛɼ È»ÛÛÛ²²±±°°°°°°°°°°º\n");
- printf(" º°°°°°°±±±²²É¼ È»²²±±±°°°°±±±±²²²ÛÛÛɼ È»ÛÛÛ²²²±±±±°°°°°°º\n");
- printf(" º°°°°°°±±±²²º ß° °ß º°°°°°±±±²²²ÛÛÛÛÛÛÛÛº °Ü ܰ ºÛÛÛÛÛÛÛÛ²²²±±±°°º\n");
- printf(" º°°°°°°±±±²²È» ɼ²²±±±°°°°±±±±²²²ÛÛÛÈ» É» ɼÛÛÛ²²²±±±±°°°°°°º\n");
- printf(" º°°°°°°±±²²ÜÛÈÍËËËËËËͼÛܲ²±±°°°°°°°°±±²²ÛÛÛÈÍËËËËËËͼÛÛÛ²²±±°°°°°°°°°°º\n");
- printf(" º°°°°°±±²²ÜÛ²²²º º²²²Ûܲ²±±°°°°°°°°±±²²ÛÛÛÛººººººÛÛÛÛ²²±±°°°°°°°°°°°º\n");
- printf(" º°°°°±±±²ÛÛ²²±²ÈÊÊÊʼ²±²²ÛÛ²±±±°°°°°°°°°±±²²ÛÛÈÊÊÊʼÛÛ²²±±°°°°°°°°°°°°°º\n");
- printf(" º°°°°°±±²²²²±±²²²²²²²²±±²²²²ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»²ÛÛÛÛÛÛÛÛ²²±±°°°°°°°°°°°°°°º\n");
- printf(" º°°°°°°±±±±±±±±²²²²²²±±±±±±±ºTOYS Hack Teamº±²²²²²²²²²²±±°BlackWizzard°º\n");
- printf(" º°°°°°°°°°°°°±±±±±±±±±±°°°°°ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ°°²²²²²²°°°°°°°°°°°°°°°°°°°º\n");
- printf(" ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ\n");
- printf(" ÉÍËËÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍËËÍ»\n");
- printf(" ̻ȼɻ ASCII BY BLACKWIZZARD ɻȼɹ\n");
- printf(" ÌÊÍÍÊÊÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÊÊÍÍʹ\n");
- printf(" º APP NAME ÍÍÍ IPcrypt.exe º\n");
- printf(" º AUTHOR ÍÍÍ BlackWizzard º\n");
- printf(" º VERSION ÍÍÍ V 1.0 º\n");
- printf(" º DOWNLOADED ÍÍÍ toys.fr.fm º\n");
- printf(" º blackwizzard.com º\n");
- printf(" ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ\n");
- printf("[press enter]");
- getch();
-
- /* On verifie si des arguments sont passés au programme. */
- if (!argv[4]) {
- IP1 = (int*)argv[1];
- IP2 = (int*)argv[2];
- IP3 = (int*)argv[3];
- IP4 = (int*)argv[4];
- goto calcul;
- }
-
- phrase:
- printf("\nEntrez une Adresse IP au format a.b.c.d : ");
- scanf("%d.%d.%d.%d",&IP1,&IP2,&IP3,&IP4);
-
- calcul:
- *_ip1 = multiplic(*IP1,16777216);
- *_ip2 = multiplic(*IP2,65536);
- *_ip3 = multiplic(*IP3,256);
- printf("\nDecimal : %d.%d.%d.%d",IP1,IP2,IP3,IP4);
- printf("\nCrypt? : %d",add(*_ip1,*_ip2,*_ip3,*IP4));
- getch();
- }
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* Nombres saisis*/
int *IP1,*IP2,*IP3,*IP4;
int *_ip1,*_ip2,*_ip3,*_ip4;
int multiplic(int x, int y) {
return (x*y);
}
int add(int a, int b, int c, int d) {
return (a+b+c+d);
}
main (int argc, char **argv) {
/* L'ASCII du programme */
printf(" ÉËÍÍÍÍÍÍÍÍÍËÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍËÍÍÍÍÍËÍÍÍÍÍÍÍÍÍË»\n");
printf(" ºº º [!] º WARNING! º [!] º ºº\n");
printf(" ÌÊÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍʹ\n");
printf(" º ÜÜÜÜÜÜÜÜÜÜÜÜÜÜ ÜÜ ÜÜ ÜÜÜÜÜÜÜÜÜÜ º\n");
printf(" º Û²±±±±±±±±²²²ÛÜÜÜÜÛ±°Û Û±°ÛÛ±±±±±±±±°Û º\n");
printf(" º Û²²²ÛÛ²²±Û°°°Û²²²²Û²±°ÛÜ Û±°Û²²±°°°°°°°Û º\n");
printf(" º ßßß Û²²±°ÛÛ²²±±±°ÛÛ²±±°Û±±°Û²±°ßÛßßÛÜÜÛ º\n");
printf(" º Û²²±°Û²²±°ßÛ±°ÛßÛ²²±±°Û Û²±°ÛÜÜÜÜÜ º\n");
printf(" º Û²²±°Û²²±°ÜÛ±°Û ßßÛ²±°Û Û²²±±±±±±°Û º\n");
printf(" º Û²²±±°Û²²²²²±°Û Û²±°Û Û°°°°°±±°Û º\n");
printf(" º Û²±±±±°Û±±±±±°Û Û²±°ÛÛÜÜÛÜÜÜÜ ±°°Û º\n");
printf(" º Û°°°°°°ÛÛ°°°°°Û Û°°°Û Û°°°°°°°°°°Û º\n");
printf(" º ßßßßßß ßßßßß ßßßß ßßßßßßßßßß º\n");
printf(" ÈÍÍÍÍÍÍÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍÍÍͼ\n");
printf(" ÉÍÍÍÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍÍÍÍ» \n");
printf(" º www.toys.fr.fm º \n");
printf(" ºÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿º \n");
printf(" º³ Au-del? du r?el, ³º \n");
printf(" º³ Au-del? des lois universelles, ³º \n");
printf(" º³ Au-del? du r?el, ³º \n");
printf(" º³ Au-del? des fronti?res mat?rielles!!!! ³º \n");
printf(" ºÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙº \n");
printf(" ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ \n");
printf("[press enter]");
getch();
printf("\n ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»\n");
printf(" º°°°°°±±²²²²±±±±±±±±±±±±²²²²±±°°°°°°°°°°°°±²²²²²²²²²²²²±°°°°°°°°°°°°°°°º\n");
printf(" º°°°°±±±²ÛÛ²²²²²²²²²²²²²²ÛÛ²±±±°°°°°°°°°±±²²ÛÛÛÛÛÛÛÛÛÛ²²±±°°°°°°°°°°°°°º\n");
printf(" º°°°°°±±²²ßÛ²²ÉÍÍÍÍÍÍ»²²Ûß²²±±°°°°°°°°±±²²ÛÛÛÉÍÍÍÍÍÍ»ÛÛÛ²²±±°°°°°°°°°°°º\n");
printf(" º°°°°°°±±²²ßÛɼ È»Ûß²²±±°°°°°°°°±±²²ÛÛÛɼ È»ÛÛÛ²²±±°°°°°°°°°°º\n");
printf(" º°°°°°°±±±²²É¼ È»²²±±±°°°°±±±±²²²ÛÛÛɼ È»ÛÛÛ²²²±±±±°°°°°°º\n");
printf(" º°°°°°°±±±²²º ß° °ß º°°°°°±±±²²²ÛÛÛÛÛÛÛÛº °Ü ܰ ºÛÛÛÛÛÛÛÛ²²²±±±°°º\n");
printf(" º°°°°°°±±±²²È» ɼ²²±±±°°°°±±±±²²²ÛÛÛÈ» É» ɼÛÛÛ²²²±±±±°°°°°°º\n");
printf(" º°°°°°°±±²²ÜÛÈÍËËËËËËͼÛܲ²±±°°°°°°°°±±²²ÛÛÛÈÍËËËËËËͼÛÛÛ²²±±°°°°°°°°°°º\n");
printf(" º°°°°°±±²²ÜÛ²²²º º²²²Ûܲ²±±°°°°°°°°±±²²ÛÛÛÛººººººÛÛÛÛ²²±±°°°°°°°°°°°º\n");
printf(" º°°°°±±±²ÛÛ²²±²ÈÊÊÊʼ²±²²ÛÛ²±±±°°°°°°°°°±±²²ÛÛÈÊÊÊʼÛÛ²²±±°°°°°°°°°°°°°º\n");
printf(" º°°°°°±±²²²²±±²²²²²²²²±±²²²²ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»²ÛÛÛÛÛÛÛÛ²²±±°°°°°°°°°°°°°°º\n");
printf(" º°°°°°°±±±±±±±±²²²²²²±±±±±±±ºTOYS Hack Teamº±²²²²²²²²²²±±°BlackWizzard°º\n");
printf(" º°°°°°°°°°°°°±±±±±±±±±±°°°°°ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ°°²²²²²²°°°°°°°°°°°°°°°°°°°º\n");
printf(" ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ\n");
printf(" ÉÍËËÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍËËÍ»\n");
printf(" ̻ȼɻ ASCII BY BLACKWIZZARD ɻȼɹ\n");
printf(" ÌÊÍÍÊÊÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÊÊÍÍʹ\n");
printf(" º APP NAME ÍÍÍ IPcrypt.exe º\n");
printf(" º AUTHOR ÍÍÍ BlackWizzard º\n");
printf(" º VERSION ÍÍÍ V 1.0 º\n");
printf(" º DOWNLOADED ÍÍÍ toys.fr.fm º\n");
printf(" º blackwizzard.com º\n");
printf(" ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ\n");
printf("[press enter]");
getch();
/* On verifie si des arguments sont passés au programme. */
if (!argv[4]) {
IP1 = (int*)argv[1];
IP2 = (int*)argv[2];
IP3 = (int*)argv[3];
IP4 = (int*)argv[4];
goto calcul;
}
phrase:
printf("\nEntrez une Adresse IP au format a.b.c.d : ");
scanf("%d.%d.%d.%d",&IP1,&IP2,&IP3,&IP4);
calcul:
*_ip1 = multiplic(*IP1,16777216);
*_ip2 = multiplic(*IP2,65536);
*_ip3 = multiplic(*IP3,256);
printf("\nDecimal : %d.%d.%d.%d",IP1,IP2,IP3,IP4);
printf("\nCrypt? : %d",add(*_ip1,*_ip2,*_ip3,*IP4));
getch();
}
Conclusion
si on lui passe des arguments, il calcul tout de suite, sinon, il demande l'ip.
Pour les socket, afin de recup l'ip, on verra plus tard...là je suis pas pret! :p
[root@localhost]$ gcc ipcrypt.c -o ipcrypt
[root@localhost]$ ipcrypt 127 0 0 1
dans le zip, le fichier _ipcrypt.c avec l'ascii qui merde pas...
Fichier Zip
Pour les "Membres Club", vous pouvez télécharger directement un fichier contenu dans le zip sans télécharger le zip en entier !
Télécharger le zip
Sources de la même categorie
Commentaires
|
CalendriCode
| | | L | M | M | J | V | S | D |
| | 1 | 2 | 3 | 4 | 5 | 6 |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 | | | |
|
|