Jump to content
!_30

Convertor 1337 ( in C for *NIX ).

Recommended Posts

Numa bun sa-l studiezi daca esti incepator... :P

#include <stdio.h>

#include <stdlib.h>

#include <strings.h>

#define RESET 0

#define BRIGHT 1

#define DIM 2

#define UNDERLINE 3

#define BLINK 4

#define REVERSE 7

#define HIDDEN 8

#define BLACK 0

#define RED 1

#define GREEN 2

#define YELLOW 3

#define BLUE 4

#define MAGENTA 5

#define CYAN 6

#define WHITE 7

void textcolor(int attr, int fg, int bg);

int

main(int argc, char *argv[])

{

int i,c;

char *lower[26]={"4","8","

Link to comment
Share on other sites

Visual Basic Version bineinteles pentru Windows

Private Sub cmdClear_Click()

txtAscii.Text = ""

txtNick.Text = ""

End Sub

Private Sub cmdCopy_Click()

Clipboard.Clear

Clipboard.SetText txtAscii.Text

End Sub

Private Sub cmdExit_Click()

End

End Sub

Private Sub txtAscii_KeyPress(KeyAscii As Integer)

KeyAscii = 0

End Sub

Private Sub txtNick_Change()

txtAscii.Text = txtNick.Text

txtAscii.Text = Replace(txtAscii.Text, "a", "4")

txtAscii.Text = Replace(txtAscii.Text, "A", "@")

txtAscii.Text = Replace(txtAscii.Text, "b", "8")

txtAscii.Text = Replace(txtAscii.Text, "B", "|3")

txtAscii.Text = Replace(txtAscii.Text, "c", "

Link to comment
Share on other sites

Sad_Dreamer :P

Si eu sunt happy , am modificat oricum codul sursa in vederea "problemei" specificate.Acum nu mai functioneaza smecheria.

Problema este ca tu ai dat un exemplu , care continea anumite caractere neluate in seama , programu .. bum , buffer overflow , e cam greu sa faci , depinde de cata memorie alocata ai la acel moment dat , sau de exemplu daca memoria alocata pentru acea variabila ( stirng ) cuv , cu malloc era prea mica .. si tu dadeai exemplu , care iesea din raza de actiune , atunci era buffer overflow .. Ce ai rezolvat tu , este o simpla eroare , pe care o trecusem cu observatia :@

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...