Logo

רד-בורד: ארכיון

ראשי > אבטחת מידע > ממיר תווים לאסקי

02/08/2006 09:22:46 xtre
אני מחפש כבר המון זמן ממיר תווים רגילים לאסקיי כלומר אני מכין איזשהו סקריפט ל Xss עכשו לפעמים יש הרבה אפשרויות לעקוף הגבלות באסקיי
אני צריך ממיר נח (יש הרבה אתרים אני מחפש תוכנה שתמיר) לעבוד איתו
הייתי מעדיף שהוא יהיה בלי התקנה בכל מקרה הכל מתקבל בברכה
גם אם זה בסינית (תמיד אפשר לתרגם)
02/08/2006 09:55:17 Ratinho
תכין!
זה ממש לא קשה..
בכ"א אתה צריך אסקיי? כי בXSS עושים יותר בhex
02/08/2006 10:10:59 xtre
ציטוט:תכין!
זה ממש לא קשה..
בכ"א אתה צריך אסקיי? כי בXSS עושים יותר בhex

אהמממ לא בעיה להכין בשביל עצמי גם יש אתרים שעושים את זה
פשוט אני עושה את זה בשביל מדריכון שאני מכין ורציתי שיהיה בכלים טובים יותר
02/08/2006 11:28:04 T4uSBaZ
נו באמת.... כל כך קשה להכין:
קוד:
#include <stdio.h>
#include <conio.h>

int main()
{
char ch;
clrscr();
printf("Enter the character to convert: ");
ch=getch();
printf("\n\nThe character: %c in Ascii : %d",ch,ch);
getch();
}

[ההודעה נערכה על-ידי T4uSBaZ ב-02/08/2006 11:28:59]
02/08/2006 15:25:13 xtre
רציתי מוכן מתורגם שיהיה יותר מקצועי אבל סבבה עניתי לך כבר בטייגר על השינויי שהכנסתי סבבה
02/08/2006 17:01:44 Ratinho
כמובן שכדאי להכניס לתוך לולאה אין-סופית
02/08/2006 17:07:34 devil kide
ציטוט:כמובן שכדאי להכניס לתוך לולאה אין-סופית
לא עדיף שהלולאה תגמר כאשר יש את התוים exit או משהו כזה?
02/08/2006 17:31:02 nel
אני לא חושב שזה עד כדי כך עקרוני לא?
02/08/2006 17:53:45 Ratinho
אם אתה עובד בgetch זה יהיה טיפה בעיה..
עדיף שפשוט ילחצו על X שימאס..
וכדאי להוסיף גם cls...

עוד עריכה: שכחת שם גם return 0;
[ההודעה נערכה על-ידי Ratinho ב-02/08/2006 17:55:32]
02/08/2006 17:55:00 devil kide
או שפשוט זה יהיה לולאת for, והמשתמש יכניס כמה תווים הוא רוצה לבדוק.
02/08/2006 18:00:50 Ratinho
זה די מעפן, כי מן הסתם תתחרט תוך כדי, אה שתרצה לשנות..
02/08/2006 18:04:55 Cyber Knight
Rthinho צודק,
אני אומר שברגע שהוא לוחץ על ESC לדוגמא אז זה לא יהווה בעייה עם ה getch(), אפשר לעשות מן תנאי כזה שכל עוד לא נילחץ המקש הזה אז הוא ימשך ליפעול....
02/08/2006 18:08:34 Ratinho
while (ch!=escAscii)
זהו, לא סיפור גדול..
ועוד צריך להוסיף תנאי בפנים..
02/08/2006 21:23:27 devil kide
טוב נו זה לא פורום תכנות, אבל לא משנה :)
אפשר אם נניח נלחץ פעמים התו ’X’, כי אף אחד לא יבדוק פעמיים את אותו התו :).
02/08/2006 23:25:05 T4uSBaZ
נתתי את הקוד הבסיסיייי ביותר....
הם רוצים עיצוב... דברים...
מה עשיתם מזה? חחחחחחח
טוב אני יעשה לכם עיצוב כשיהיה משעמם :P
02/08/2006 23:39:42 T4uSBaZ
מחר נעשה עיצוב.. נעשה יציאה.. נעשה גם ממיר אסקיי לתווים.. בעע מתפלא עליכם ידע בסיסי!
03/08/2006 20:08:43 T4uSBaZ
קוד:
/*Compiled in borland c
++ for dos.. this is important, becuase some of the commands here will work only in this compiler */
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <stdlib.h>
#include <dos.h>

#define DL 188
#define DR 200
#define UL 187
#define UR 201
#define UD 186
#define LR 205
void menu();
void main(){
menu();
}
void printdesign()
{
int c;
clrscr();
gotoxy(1,2);
textcolor(2);
cprintf("%c",UR);
for(c=2;c<80;c++)
cprintf("%c",LR);
cprintf("%c",UL);
for(c=3;c<25;c++)
{
gotoxy(1,c);
cprintf("%c",UD);
gotoxy(80,c);
cprintf("%c",UD);
}
cprintf("%c",DR);
for(c=2;c<80;c++)
cprintf("%c",LR);
cprintf("%c",DL);
gotoxy((80-strlen("[ maked for shlomix.ios.st by t4usbaz ]"))/2,1);
textcolor(116);
cprintf("[ ");
textcolor(117);
cprintf("Maked For ");
textcolor(116);//132 FOR LIGHTING
cprintf("ShLoMix.IoS.St");
textcolor(117);
cprintf(" By ");
textcolor(113);//129 FOR LIGHTING
cprintf("T4uSBaZ ");
textcolor(116);
cprintf("]");
}
void CAC()//CHAR ASCII
{
printdesign();
char string[80];
int i;
textcolor(2);
gotoxy(3,3);
cprintf("Enter The char/chars to convert: ");
gets(string);
if(strlen(string)==0)
{
gotoxy(3,5);
cprintf("Nothing to convert. Press any key to back to menu.");
getch();
menu();
}
if(strlen(string)==1)
{
gotoxy(3,5);
cprintf("The Char %c In ascii: %d",string[0],string[0]);
getch();
menu();
}
if(strlen(string)>1)
{
gotoxy(3,5);
cprintf("The String ");
puts(string);
gotoxy(3,7);
cprintf("In ascii: ");
for(i=0;i<strlen(string);i++)
cprintf("%d,",string);
getch();
menu();
}
else
menu();
}
void ACC()//ASCII CHAR
{
char att[20];
int datt;
int i;
printdesign();
textcolor(2);
gotoxy(3,3);
cprintf("Enter The Ascii to convert: ");
gets(att);
if(strlen(att)==0)
{
gotoxy(3,5);
cprintf("Nothing to convert. press any key to back to menu.");
getch();
menu();
}
for(i=0;i<strlen(att);i++)
if(att<’0’ || att>’9’)
{
gotoxy(3,5);
cprintf("Error in Ascii. Only Numbers! press any key to back to menu");
getch();
menu();
}
gotoxy(3,5);
cprintf("The Ascii %s ",att);
cprintf(" In char: ");
datt=atoi(att);
cprintf("%c",datt);
getch();
menu();
}
void menu()
{
int choice;
printdesign();
do{
textcolor(2);
gotoxy(3,3);
cprintf("Wellcome to Char - Ascii Convertor!");
gotoxy(3,5);
cprintf("1. Char to Ascii converter");
gotoxy(3,7);
cprintf("2. Ascii to Char converter");
gotoxy(3,9);
cprintf("3. Exit");
gotoxy(3,12);
cprintf("Please make your choice [ ]");
gotoxy(28,12);
textcolor(113);
choice=getch();
}while(choice-48!=1 && choice-48!=2 && choice-48!=3);
if(choice-48==3)
exit(0);
if(choice-48==2)
ACC();
if(choice-48==1)
CAC();
}
[ההודעה נערכה על-ידי T4uSBaZ ב-03/08/2006 20:10:18]
03/08/2006 21:18:20 sysctl
לול, יפה
עמודים: 1