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.


Topics - lucid

Pages: [1] 2 3 ... 7
1
Operating System / Headphone jack sound problem
« on: June 05, 2013, 03:19:36 am »
I'm assuming this is a driver problem. Sadly enough, I've been searching for ways to fix this for quite awhile to no avail. I can't hear anything when I use my headphone jack in Win7. So I went to the control panel and started adjusting shit and making different devices the default devices. I never see anything about headphones in the sound device manager when I plug in the headphone. At the bottom of the screen on the right in the taskbar the Realtek HD Audio Manager informs me that I just plugged/unplugged a device into the audio jack but it never actually works. I went to sound > playback devices and the two things that show are Speakers(which is the default device, and something called 37LCD-UD(underneath it says High Definition Audio Device and that it is unplugged. There doesn't seem to be anything I can do to change that.

I'm dumb when it comes to windows.

2
Scripting languages / [Bash] Log wiping script
« on: June 05, 2013, 02:15:02 am »
I wrote this little bash script awhile ago to wipe my logs on shutdown. However, there are a few log files in /var/log that I would rather not wipe clean.

Code: [Select]
#!/bin/sh

## Erase contents of all files in /var/log
find /var/log -type f -exec sh -c '> "{}"' \;

## Erase contents of bash history and shutdown
cat /dev/null > .bash_history
shutdown -h now

I don't really code in bash so I thought I would just ask. Can anyone think of a good way to achieve what I want with this but be able to avoid wiping select files?

3
Web Oriented Programming / [PHP] A more dynamic approach?
« on: May 31, 2013, 05:20:52 am »
Sup fools. I had a question about more efficient PHP-ing. I just whipped up this little encoding script a few minutes ago:

Code: PHP
  1. <table><tr><td>Input String Here: <form method='post' action='?crypt'>
  2.                    <textarea rows='20' cols='40' name='crypt'></textarea><br />
  3.                <input type='submit' value='Calculate' /></form></td></tr>
  4.  
  5. <?php
  6.  
  7. function strtoheX($str)
  8. {
  9.     $h = '';
  10.     for($i = 0; $i < strlen($str); $i++)
  11.     {
  12.         utf8_decode($str);
  13.         $h .= dechex(ord($str[$i]));
  14.     }
  15.     return '0x'.$h;
  16. }
  17.  
  18. if(isset($_POST['crypt']))
  19. {?>
  20.     <table>
  21.         <tr><td>md5: <input type='text' size='45' value='<?php echo md5($_POST['crypt']); ?>' /></td></tr>
  22.         <tr><td>sha1: <input type='text' size='45' value='<?php echo sha1($_POST['crypt']);?>' /></td></tr>
  23.         <tr><td>sha256: <input type='text' size='45' value='<?php echo hash('sha256', $_POST['crypt']); ?>' /></td></tr>
  24.         <tr><td>crypt: <input type='text' size='45' value='<?php echo crypt($_POST['crypt']); ?>' /></td></tr>
  25.         <tr><td>crc32: <input type='text' size='45' value='<?php echo crc32($_POST['crypt']); ?>' /></td></tr>
  26.         <tr><td>urlencode: <input type='text' size='45' value='<?php echo urlencode($_POST['crypt']); ?>' /><input type='submit' name='udec' value='Decode' /></td></tr>
  27.         <tr><td>base64 encode: <input type='text' size='45' value='<?php echo base64_encode($_POST['crypt']); ?>'/><input type='submit' name='basedec' value='Decode' /></td></tr>
  28.         <tr><td>hexadecimal: <input type='text' size='45' value='<?php echo strtoheX($_POST['crypt']); ?>' /><input type='submit' name='hexdec' value='Decode' /></td></tr>
  29.     </table><?php
  30. }
  31. else
  32. {?>
  33.        
  34.         <table>
  35.             <tr><td>md5: <input type='text' size='45' /></td></tr>
  36.             <tr><td>sha1: <input type='text' size='45' /></td></tr>
  37.             <tr><td>sha256: <input type='text' size='45' /></td></tr>
  38.             <tr><td>crypt: <input type='text' size='45' /></td></tr>
  39.             <tr><td>crc32: <input type='text' size='45' /></td></tr>
  40.             <tr><td>urlencode: <input type='text' size='45' /><input type='submit' name='urldec' value='Decode' /></td></tr>
  41.             <tr><td>base64 encode: <input type='text' size='45' /><input type='submit' name='basedec' value='Decode' /></td></tr>
  42.             <tr><td>hexadecimal: <input type='text' size='45' /><input type='submit' name='hexdec' value='Decode' /></td></tr>
  43.         </table><?php
  44. }
  45.     ?>
  46.  

Now I know for a fact that there is a more efficient way to go about this but I'm not sure how. I want:

1- For the text input in the textarea to stay after I click the submit button

2 - As you can see I want it to calculate a string to a variety of different hashes etc. I want to find a more dynamic way to input all the hashes to their input boxes.

Thanks for any help given. I'm aware this code is sloppy like I said I just wrote it in a few minutes.

4
Hacking and Security / Airodump-ng fixed channel problem
« on: May 27, 2013, 02:41:29 am »
Hey guys, recently I bought an Alfa AWUS036H Wireless adapter for the purpose of cracking a neighbors network so that I may enjoy the pleasures of wifi. I ran into a problem however. From what I understand it's not uncommon. Once I went to run airodump-ng I noticed that in the upper right corner, instead of saying something like: WPA Handshake : ff:ff:ff:ff:ff:f, it said mon0 fixed channel -1. So when I tried to proceed further it said that I am fixed on channel -1 but need to be on another channel, preventing the WPA handshake from happening. I researched the problem and it seems that only Ubuntu users have run into this. I am using Arch. Ubuntu users have fixed this problem in the past with a patch. However there was a way to do so without doing that. This script:

Code: [Select]

#!/bin/bash
#change this to the interface you wish to change
IFACE="wlan0"

ifconfig $IFACE down
iwconfig $IFACE mode managed
ifconfig $IFACE up
iwconfig $IFACE channel $@
ifconfig $IFACE down
iwconfig $IFACE mode monitor
ifconfig $IFACE up

iwconfig $IFACE


Is supposed to fix the fixed channel problem. Now there's a new problem. Whenever I run this script it completely brings the interface down. So I can't use the Alfa wireless at all. And that's where I get stuck.
 

5
Web Oriented Programming / [PHP] File Size
« on: May 22, 2013, 09:41:26 pm »
This doesn't make any fucking sense. So I have this human readable filesize function:

Code: PHP
  1. function read_size($bytes, $file)
  2. {
  3.     $kB = 1024;
  4.     $MB = $kB * 1024;
  5.     $GB = $MB * 1024;
  6.     $TB = $GB * 1024;
  7.    
  8.     if(!is_file($file))
  9.     {
  10.         return "Directory";
  11.     }
  12.     elseif(is_file($file))
  13.     {
  14.         switch($bytes)
  15.         {
  16.             case $bytes < $kB:
  17.                 return $bytes . ' B';
  18.                 break;
  19.             case $bytes >= $kB && $bytes < $MB:
  20.                 return round($bytes / $kB, 2) . ' KB';
  21.                 break;
  22.             case $bytes >= $MB && $bytes < $GB:
  23.                 return round($bytes / $MB, 2) . ' MB';
  24.                 break;
  25.             case $bytes >= $GB && $bytes < $TB:
  26.                 return round($bytes / $GB, 2) . ' GB';
  27.                 break;
  28.             case $bytes >= $TB:
  29.                 return round($bytes / $TB, 2) . ' TB';
  30.                 break;
  31.         }
  32.     }
  33. }
  34.  

Also just to be thorough, here's where I call the function:

Code: [Select]
                <tr>
                    <td><?php echo $file?></td>
                    <td><?php echo read_size(filesize($path_and_file), $file); ?></td>
                    <td><?php echo view_perms($file); ?></td>

And at first glance it seems to work fine. It works just fine in the directory that it shows the contents of by default. However, when I back out to any other directory it says that everything is a directory. I just created a .txt file and in the filesize area it just said Directory instead of showing the filesize. I don't think that makes any fucking sense can you guys see a problem in my function?

6
Hardware / Looking for a gateway
« on: May 17, 2013, 05:46:53 am »
I'm in the market for a gateway for my house. Currently we have ethernet only and I don't want to rent a modem from Comcast. So I'm looking for a router-modem combo. The only things that matter is that it's cheap and supports port forwarding.

Hit me.

7
Hardware / Screen damage gettin me down
« on: May 14, 2013, 08:27:24 pm »
I'm starting to think that Asus laptops suck. A year or so ago I had bought one and within a few weeks I had screen damage. It started as a little dot with some straight green lines coming out of it. The next day it was severely damaged with what seemed like pixel damage from the top of the screen to the bottom. I ended up buying a new laptop because there seemed to be no way to fix the screen cheaply. I always thought it was one of the fatass cats that was sitting on my screen when the laptop was closed. Anyway, I got the same laptop and for a year it's been fine. Until a few days ago a tiny black dot appeared on the screen. I keep my laptop in it's case so I don't think it's cats sitting on it. Just today I noticed some tiny green lines starting to come out of the little black dot. So, I'm thinking it's going to keep growing. I guess screen damage isn't the end of the world but considering this is the only computer I have and will be for awhile, and that this computer is basically what I do with my life, I'm pretty upset. My question is, is there anything I can do about this screen damage? How much would it cost to fix it?

8
Web Oriented Programming / [PHP] File editing
« on: May 10, 2013, 10:14:56 pm »
Ok, so I debated putting this in the VIP only section because I only want intelligent responses and this is part of a bigger project I'm working on so I didn't want to release too much of the source yet but, fuck it.

So, here's my problem. I can't figure out how to open the contents of a file in a textarea and then edit the file. Don' t really have a specific question to be honest. I've been working on this for days with literally zero results. At this point I'm running out of ideas and I need a fresh pair of eyes. So friends, take a look and tell me if you see the probably glaring error in my code:

These are the file functions
Code: PHP
  1. function view_files($dir)
  2. {?>
  3.     <table>
  4.         <tr>
  5.             <form method='POST' action='?act=file&dir=<?php echo base64_encode($dir);?>'>
  6.             <td><input type='text' name='dir' size='50' value='<?php echo $dir; ?>'>
  7.             <input type='submit' value='Go'></form></td
  8.         </tr>
  9.        
  10.         <table border='1'><tr>
  11.             <td width='175'><b>Name</b></td>
  12.             <td><b>Size</b></td>
  13.             <td><b>Permissions</b></td>
  14.             <td><b>Edit</b></td>
  15.             <td><b>Delete</b></td>
  16.             <td><b>Chmod</b></td>
  17.         </tr>
  18. <?php
  19.  
  20.     if($handle = opendir($dir))
  21.     {
  22.         while(($file = readdir($handle)) !== false)
  23.         {
  24.             if($file != '.' && $file != '..')
  25.             {?>
  26.                 <table><td>
  27.                     <?php echo $file; ?>
  28.                     <td width='165'><a href='?act=edit&file=<?php echo base64_encode($file);?>'><b id='me'><u>Edit</u></b></a></td>
  29.                     <td width='225'><a href='?act=del'><b id='me'><u>Delete</u></b></a></td>
  30.                     <td width='190'><a href='?act=chmod'><b id='me'><u>Chmod</u></b></a></td>
  31.                 </td></table>
  32.             <?php
  33.             }
  34.         }
  35.     }
  36. }
  37.  
  38. function edit_files($file)
  39. {
  40.     if(isset($_POST['f']) && isset($_POST['d']))
  41.     {
  42.         $handle = fopen($_POST['f'], 'w');
  43.         if(!$handle)
  44.         {
  45.             echo 'Failed to open selected file.';
  46.         }
  47.         else
  48.         {?>
  49.             <form method='POST' action='?act=edit&file=<?php echo base64_encode($file);?>'><textarea rows='17' cols='70' name='d'><?php
  50.             $data = htmlspecialchars(file_get_contents($_GET['edit']));
  51.             echo $data;
  52.             fwrite($handle, $_POST['d']);
  53.         }
  54.         if(file_exists($file))
  55.         {
  56.             $handle = fopen($file, 'r');
  57.             $contents = fread($handle, filesize($file));
  58.             echo htmlspecialchars($contents);
  59.         }?>
  60.         </textarea><input type='submit' value='Save Changes' /></form><?php
  61.     }  
  62. }
  63.  

Here's where it starts:
Code: PHP
  1. <?php
  2. if(isset($action) && !empty($action))
  3. {  
  4.     if($action == 'file')
  5.     {?>
  6.         <table border='1'><th><b><a id='info' href='?act=file'>[ File Management ]</a></b></th></table><?php
  7.        
  8.         view_files($dir);
  9.     }
  10.     elseif($action == 'edit')
  11.     {?>
  12.        <table border='1'><th><b>[ Edit Files ]</b></th></table><?php
  13.        
  14.        edit_files($file);
  15.     }
  16.  

By the way $action == $_GET['act'] just so you know. I think that is all the relevant code. What basically happens is when I click on the edit button in my script, it only posts the [ Edit Files ] table header and that's it. So.. Idk I've been working on this for days with no results.

9
Web Oriented Programming / [PHP] Email form
« on: April 24, 2013, 01:06:16 am »
Hey guys. I'm writing an email form to be part of a larger project I'm working on(I'll be releasing here soon enough ;D ) and I can't seem to get the email form to work. I'm sure it's all correct and I'm also sure there is some tiny bit that I'm doing wrong. Everything works except I never receive an email.

Code:
Code: PHP
  1. <?php
  2.  
  3. if(isset($_POST['message']) && !empty($_POST['message']))
  4. {
  5.     if(mail('lucid@evilzone.org','Feedback', htmlspecialchars($_POST['message'])))
  6.     {
  7.         $status = "Your message has been delivered to lucid@evilzone.org";
  8.     }
  9.     else
  10.     {
  11.         echo "Failed to deliver message";
  12.     }
  13. }            
  14.     ?>
  15.  
  16. <table width='100%' height='1' cellspacing='5' cellpadding='5' bordercolor='#0ABFFF' border='1' bgcolor='#333333' bordercolorlight='#c0c0c0' bordercolordark='#666666' style='border-collapse: collapse;'>
  17.     <tr>
  18.         <td>
  19.             <b>Submit Feedback and Reports Here</b><br><br><form action='?a=fdbk'           method='post'><b>Email: </b><input type='text' name='email'><br><br><b>Name: </b><input type='text' name='email'><br><br><b>Message: </b><br><textarea rows='10' cols='60' name='message'></textarea><br><input type='submit' value='Send'></form>
  20.         </td>
  21.         <?php if(isset($status)) echo $status; ?>
  22.     </tr>
  23. </table>
  24.  

That's the relevant part of the code.

10
Hardware / FAT32 and Large files
« on: April 04, 2013, 09:13:48 pm »
I guess this fits in this section...

Anyway, I have a 1.5TB external that I had configured to work with my Xbox 360. As you may know(or maybe not) when you configure a device to do this it formats it as FAT32. Well as you ALSO may know, you can't store any files larger that 4gb on FAT32 partitions. Which is a problem for me because I have a couple encrypted containers that I need to be larger than that. I also would like to be able to use my external for VMs and there's no way they are going to be less than 4gb. Sooo....

I've tried a couple of things. My most recent attempt was to split the external into two partitions and then try to configure it that way. The problem here is that I can't format the external to FAT32 using the Disk Management in Windows. So I was hoping that the Xbox would recognize that there are two separate partitions and I could format only one of them but no such luck. So what I plan to do now is to format one of the partitions to FAT32 ahead of time and THEN try to configure it to use the Xbox. I noticed that if the device is already FAT32 then it won't have to be reformatted to be able to work with the Xbox360. So I'm hoping that if one of the two partitions on my external are already FAT32 it will recognize that and not need to reformat the whole thing to FAT32, thus allowing me to use it with the Xbox360 with the one partition, and store large files on the other partition. Do you guys think this will work?

Also, if it doesn't, do you know of any way to store files larger than 4gb on a FAT32 filesystem? Or any other filesystem types that the Xbox will recognize?

11
General discussion / Gettin me some internet
« on: March 08, 2013, 10:16:03 pm »
So I very recently moved into my new home. I'm so fucking glad to be done living with bipolar people and/or/and dumbass asshole roomates. Just me my animals and my girlfriend. How awesome.

Now there's some things I need to get set up such as internet(I'm writing this from a library computer). I was curious about what kind of ISP you guys prefer. Needless to say, if you have shitty internet then don't post in this thread. I'm willing to spend up to 50 American a month and that's about it. I don't need TV or anything. Just some good old wifi.

So? Let's hear it.

12
Video Tutorials / Certified Ethical Hacker 7
« on: March 06, 2013, 09:45:44 pm »
I noticed that there are some Certified Ethical Hacker uploads but most of them are really old. So I decided to share my more up to date stuff, even though for some reason I noticed alot of people think CEH is bullshit.

Anyway, here are the videos:

CBT Nuggets

   http://upload.evilzone.org/download.php?id=4350960&type=rar
 
Code: [Select]
Introduction
VMWare and Linux
Footprinting and Reconnaissance part 1 and 2
Scanning part 1 and 2
Enumeration
Passwords Windows
Passwords Linux
System Hacking
Malware
Hack-O-Rama
Sniffing
Social Engineering
Denial of Service
Session Hijacking
Web and SQL Hacking
Cryptography
Intrusion Detection Systems
Hacking Wireless Networks

And the related ebooks:

   http://upload.evilzone.org/download.php?id=8632324&type=rar

I have a shitload of ISOs to go with it but honestly, it takes five fucking hours to get the upload link and I would have to split the folder so many damn times it would be ridiculous. Maybe when I have more time.

13
C - C++ / C++ instead of C[not what you think]
« on: March 06, 2013, 01:31:56 am »
What's better for coding, say, a server. Like a SOCKS server. C or C++? I'm guessing C and that makes me sad. See, right now I'm learning PHP/MySQL. I'm determined to stick with it because I've bounced around too much in the past year and I haven't gotten anywhere. But my ultimate desire is to learn C. In about 6 months I'm going to be taking programming classes and AFAIK they will be involving C++. I've often heard it's a bad idea to try to learn two languages at once and I REALLY wanted to focus on C after focusing on PHP/MySQL for the next 6 months but now it appears I'll be forced to learn C++. Not that that's a bad thing I had wanted to learn that eventually too, so if I took the class I would want to learn it but I wanted to learn C first..

I'm going in circles you get my point.

14
Operating System / Clearing /var/log
« on: March 05, 2013, 10:07:44 pm »
For security's sake, I was looking into removing some logs at shutdown. Namely I was looking at the logs in /var/log.

Does anyone have any input on this? I want to make sure this won't damage anything if I erase all logs every shutdown.

15
Anonymity / [EvilTutorial] The Art of Anonymity
« on: February 26, 2013, 12:41:43 am »
                                      The Art of Anonymity
___________________________________________________________________________________________________

// This tutorial created by lucid.
// None of that "I collaborated a bunch of sources I found online!" shit.
// This tutorial for educational purposes only  ;)

::In This Tutorial
- Browser Security
- Local Net Security
- Encryption/Logs
- Virtualization Software/liveUSB
- IP Address

::What You Will Need
- A brain
- A computer
- The ability to read
- Wireshark (not absolutely necessary)
- Linux. There's already plenty of Windows tutorials out there.
- No Jews Allowed...
- Ok fine Jews

::Let's Get Started!

First of all, I realize that there are already a few anonymity tutorials in our wonderful Anonymity section. However, I realized today that they are incredibly generic and are practically duplicates of the hundreds of other generic tutorials out there littering the net. So, I decided to write one that is a little bit more inclusive. I would also like to add that there is not one tutorial out there that will provide you with absolutely all the information you will need to be 100% anonymous. In fact, I don't think that you even can be 100% anonymous. Keep that in mind, and always be paranoid.

::Browser Security

Chaining 35 proxies won't do you any good if you overlook other aspects of being anonymous. As far as I'm concerned there's a few keys points to browser security.

User Agent:

If you don't already know what this is then you should probably come back to this tutorial later in life. But just in case:

"The term was coined in the early days of the Internet when users needed tool to help navigate the Internet.  Back then, the Internet was (an actually still is) completely text-based, and to navigate the text, text commands needed to be typed into a keyboard.  Soon tools were developed to be the users 'agent', acting on the user's behalf so that the user didn't have to understand the cryptic commands in order to retrieve information.  Today, nearly everyone uses a web browser as their user agent." - http://whatsmyuseragent.com/WhatsAUserAgent

Obviously this can be indentifying, specially if you have a rather unique one. In older versions of Firefox you were able to go into the about:config and permanently edit your user agent. I don't think you can do that now. So instead, I would recommend getting an add-on to take care of this. There are plenty of them, but my favorite one is Override User Agent because it seems to have the most choices. Everything from Safari to Opera to Internet Explorer to Mozilla to Mobile user agents. Shit, you can even make it appear as though you are a Google Bot. Too easy.

You can do this in most major browsers and it will almost always come in the form of an add-on.

Something that was brought to my attention by proxx is that a network admin could potentially discover that you are being dishonest about your user agent via the TTL values of the packets. TTL stands for 'Time to Live' and is responsible for limiting the number of hops of a packet. This prevents the packets from floating around for eternity to explain it in a mundane way. So, an example would be that you are using a Windows user agent and spoofed it to be a Linux user agent. It would be possible for the net admin to analyze the TTL value and determine that it was changed and when.

A link provided by proxx might help to explain some of this: http://www.binbert.com/blog/2009/12/default-time-to-live-ttl-values/

It would be a safe bet to keep your windows user agents windows, and your linux user agents linux. You can easily spoof the TTL values in linux, perhaps using iptables.

Referer Url:

This one seems to be rather overlooked. This is an HTTP header field that can be used to track your path from page to page. This one is also a simple fix. At least in Firefox. All you have to do is, once again, go to the about:config and search for network.http.sendRefererHeader. Once you've found it just set it to a value of 0. That takes care of that. You can also use the add on RefControl.

In Chrome you can check this out:

https://chrome.google.com/webstore/detail/referer-control/hnkcfpcejkafcihlgbojoidoihckciin?hl=en

If you are using Internet Explorer then..... Well then you should just go away.

Cookies:

Cookies are used to track your web activities. Don't think that just because you are using Tor you are safe from this. As usual there is a plethora of add-ons that you can use. You can also set your browser to not accept cookies from sites, however, you may find that you won't be able to access certain sites if you do this. At least make sure that you remove cookies when you are done with you session. This can be done in Firefox > Prefs > Privacy > Show Cookies >  Remove All Cookies. Obviously that's for firefox. In Chrome I think it's something like, Chrome > Tools > Clear Browsing Data. For Opera it would be Settings > Preferences > Advanced > Cookies.

For those of you who don't know there is such a thing as long-term cookies. Otherwise known as LSO's(Local Shared Objects). These are flash cookies. As far as I know they aren't removed when you do the cookie removing steps I mentioned above. You can handle these by getting the add-on called BetterPrivacy.

I hope I don't have to tell you guys to clear your history or use Private Browsing. Oh! and one more note that I'm not going to make a title for. Be aware of the Desktop and Web Browser extensions you are using. For example, weather monitoring extensions could be very bad because they may transmit zip codes or address information to get local weather reports. Many people overlook this. Hiding your IP won't matter if you overlook this.

Other good add-ons:

Adblock Plus - Can be used for Firefox, Chrome, Opera and Android

HTTPS Everywhere - Encrypts your communications with over 1000 websites. Unless you're taters I'm sure most of you are already using this.

Ghostery - See what's tracking you on a site to site basis. Block them if you wish

TrackMeNot - I really like this one. This one spoofs your searches. For example, currently it looks like I'm browsing for: dogs

When instead I might be browsing: How to be a terrorist

No Script - Oh come on.


Startpage:

Also, for those of you who don't like Google for obvious reasons, check out Startpage. It sends your searches to their own server before actually sending it out to the web to help hide who's searching. It's alot like Ixquick except that it yields better results. They don't log your IP.

::Local Net Security

If you aren't worried about your local network identifying your machine then I wouldn't worry about this section. Still, it's good to know.

MAC Address:

Your MAC address is a 48bit hardware identifying address which is part of your network card. Everyone has one and they are all unique. Again, this doesn't cross router boundaries so there are many situations when spoofing this doesn't matter. There are a few ways to spoof this. This first way being manually. The basic syntax for this is:

ip link set wlan0 down < to bring down the interface temporarily, otherwise it won't work
ip link set wlan0 hw ether ff:ff:ff:ff:ff:ff < don't use that one idiot

Snayler reminded me that in Debian based systems you can run:

ifconfig wlan0 down <to bring down the interface
ifconfig wlan0 hw ether ff:ff:ff:ff:ff:ff

Then you have to reconfigure the interface. Simply running ip link set wlan0 up(or ifconfig wlan0 up) won't work.

The easier way is just to do this with macchanger.

Code: [Select]
macchanger --help
Code: Usage: macchanger [options] device

  -h,  --help                   Print this help
  -V,  --version                Print version and exit
  -s,  --show                   Print the MAC address and exit
  -e,  --endding                Don't change the vendor bytes
  -a,  --another                Set random vendor MAC of the same kind
  -A                            Set random vendor MAC of any kind
  -r,  --random                 Set fully random MAC
  -l,  --list[=keyword]         Print known vendors
  -m,  --mac=XX:XX:XX:XX:XX:XX  Set the MAC XX:XX:XX:XX:XX:XX

Generally I prefer to do macchanger -r wlan0. Don't forget to run ip link set wlan0 down first. If you want to run this at startup you could write a little bash script and symlink it.

Code: [Select]
ln -s /etc/init.d/script.sh /etc/rcX.d/K10script.sh

For those systemd users I created a tutorial not too long ago on exactly how to do this here.

DHCP:

Many people are aware of the MAC address and that spoofing it might be a good idea. Not everyone considers this though. You dhcp client will often transmit some information when requesting an IP address. Much of the time this only includes your hostname and MAC address(which you now know how to spoof). Unless your hostname is:

twinkletits@hackingboxDumbassvilleOregon123herpderpLane

Then you should be fine.

Unfortunately, at least in the case of dhcpcd for you Gentoo and Arch users, it transmits a hell of alot more. It will transmit your hostname, dhcpcd version, kernel, OS and architecture. This is known as your vendor class id. Which is obviously very identifying. This can be taken care of by editing your /etc/dhcpcd.conf file.

So, for example instead of having your actual hostname and vendorclass id be transmitted you can change it to whatever you want. Now, here's where you might want Wireshark. Set your filter to bootp and send out a DHCP request.

Take a look at this DHCP Request packet.



Notice where it's highlighted and it says Vendor Class ID. That is extremely identifying information. As you can see I'm using Arch linux with Genuine Intel. You now know my exact kernel and dhcp version. Underneath you can see that my hostname is machine. However, when I append these lines to the bottom of /etc/dhcpcd.conf:

Code: [Select]
hostname imatransvestite
vendorclassid isc-dhclient-V3.1.3:Linux-2.6.32-45-generic-ubuntu:x86

And now we send out another dhcp request.



Take a look at my vendor class id and hostname now. Be aware there are alot of local services that may transmit your user and hostname. TCP ident lookups, FTP logins, perhaps telnet are examples. Generally it's a good idea to not have a unique or identifying user and hostname.

::Encryption/Logs

NOTE: This information up to the Paranoid Encryption category is largely taken from the Arch Wiki. However, it is not copy/paste.

There are a few kinds of encryption.

Stacked Encryption:

This is a when an encrypted filesystem is stacked on top of an existing filesystem. This causes all files written to the encrypted folder to be done so "on the fly" before being written to disk.

- eCryptfs

- EncFS

Block Device Encryption:

This, on the contrary, is written below the filesystem layer to make sure that everything written to a certain block device is encrypted.

- dm-crypt + LUKS

- Truecrypt

Example Encryption Schemes:

1. Simple Data Encryption -
Would include an encrypted folder in /home. Might be encrypted in EncFS or truecrypt.

2. Simple Data Encryption(external device) -
Would include an entire external device encrypted with Truecrypt.

3. Partial System Encryption -
Would include the home directories encrypted, perhaps with eCryptfs. SWAP and /tmp separate partitions encrypted with dm-crypt + LUKS.

4. System Encryption -
If using Truecrypt you can't do this in Linux.

5. Paranoid System Encryption -
A rather clever idea. The entire hard drive is encrypted with dm-crypt + LUKS, and the /boot partition is on a separate USB stick. You would have to be freshly installing to do this because I highly doubt that any of you set up your /boot partition to be on a separate USB stick. This way, you can't even boot the OS without the USB.

Be sure that anything sensitive you may have you NEVER put in an unencrypted area. I recommend always having at least an encrypted folder, if not an entire device, on an external drive. That way it is entirely off of your computer. I you accidentally happen to save something in an unencrypted area, don't think that deleting it is good enough. Every *nix should have a built in shredding command.

man shred
Code: [Select]
NAME
       shred - overwrite a file to hide its contents, and optionally delete it

SYNOPSIS
       shred [OPTION]... FILE...

DESCRIPTION
       Overwrite  the specified FILE(s) repeatedly, in order to make it harder

Usage: shred [OPTION]... FILE...
Overwrite the specified FILE(s) repeatedly, in order to make it harder
for even very expensive hardware probing to recover the data.

Mandatory arguments to long options are mandatory for short options too.
  -f, --force    change permissions to allow writing if necessary
  -n, --iterations=N  overwrite N times instead of the default (3)
      --random-source=FILE  get random bytes from FILE
  -s, --size=N   shred this many bytes (suffixes like K, M, G accepted)
  -u, --remove   truncate and remove file after overwriting
  -v, --verbose  show progress
  -x, --exact    do not round file sizes up to the next full block;
                   this is the default for non-regular files
  -z, --zero     add a final overwrite with zeros to hide shredding
      --help     display this help and exit
      --version  output version information and exit

I would recommend at least using the u and z flags. If you want to shred the contents of an entire directory you can run this command:

'find -type f -execdir shred -uvz '{}' \;'

Logs:

Logs can let someone know what you have been doing on your system. Some common places for logs and temporary data in Linux are:

/tmp
/var/tmp
/var/logs
/home (hidden files and folders)

I would be careful about what you go doing in these directories. Destroying certain files could do serious damage to your operating system. Something else I would watch out for is your swap partition. Data could be saved here if you happen to use swap. This data could be retrieved even though you may not be aware of it. If you have the RAM I would recommend not even making a swap partition. Alternatively, you could mount your RAM and swap as /tmpfs and they will be cleared at shutdown. You can easily do this in your /etc/fstab. Certain *nixes already have this as default.

If you are thorough(paranoid) enough, you could always write a bash script to run in place of your shutdown command. I don't know how many of you use the terminal to shutdown but if you don't you could always edit whatever shutdown button you use to run your script.

Here's an example script:
Code: [Select]
#! /bin/bash
# Truncate all files in /var/log
find /var/log -type f exec sh -c '> "{}"' \;

# Clear any other log files you deem necessary
cat /dev/null > ~/.cache/config/openbox/openbox.log
cat /dev/null > blahblah.txt
shutdown -h now

Then you can set your script to an alias:

Code: [Select]
alias shutdown='/path/to/bash/script/shutdown.sh'

And add that to your ~/.bashrc. This way all you have to do is open a terminal and run 'shutdown' and you clear all your logs before shutdown. Simple.

::Virtualization Software/liveUSB

To be quite honest, I wouldn't worry TOO much about logs. A better idea is to just not do anything illegal on your main OS. There are alternatives.

Virtualbox/VMware:

A good idea is to install some anonymity based OS(or any OS for that matter) in a virtualization software of your choosing. Doing this keeps alot of sensitive information such as logs and whatnot off of your main OS. Think of it as keeping all your dirty underwear in one tiny basket. I'm not going to teach you how to create a virtual machine here because, it's fucking easy. What I will say is that if you are going to do this you should do it the right way. My recommendation is to follow these steps:

1. Encrypt an external device. Preferably not a USB. You'll probably need something with more room.

2. Before you create the virtual machine, plug in your external and unlock it(since you encrypted it).

3. Set the path of the virtual machine in your settings to the path of the encrypted device. Doing so will make it so that the only way to access your virtual machine is if the device is plugged in and unlocked.

4. For extra security use a couple of keyfiles. Use a few jpegs or mp3 files on yet another external device. That is, if you're paranoid enough  8) . Some good operating systems for doing this might be:

- Virtus(although it runs on Ubuntu 11.10 so maybe not)
- Whonix

Whonix is built specifically for Virtualization software. You can not install this on your actual computer. Due to the way it's built DNS leaks are impossible.

liveUSB:

Using virtualization software is good practice. However, it IS still on your actual computer. Yet a safer way would be to create a liveUSB. You can do this with UNetbootin, LinuxLive USB Creater(LiLi) or the dd command.

dd if=/path/to/iso of=/dev/sdX

Create it with no persistence. What is persistence you ask? Persistence is when any settings or modifications you make on a liveUSB stay, or, persist every time you start up the liveOS.

The downside to creating a USB with no persistence is that everytime you decide to boot it up, any settings you may wish to have(such as many of the settings I mentioned in the tut so far) will have to be done every single time. However, the upsides I think outweigh the downsides. Basically, a liveUSB with no persistence is like booting into a fresh install of an operating system every time. So on those warm summer days where you feel like talking a relaxing walk to the public library, sitting down with a cool drink, and hacking the gibson, you can! Just pop in your liveUSB and hack away! Ok, don't really do that. But you get my point. This way when you are done you just yank the thing out and the next time you boot it up it will be like nothing ever happened on the liveUSB. If you are going to do anything really serious, this is a good option. Good operating systems for this might be:

- Privatix
- Liberte
- Tails

Really though you can use any operating system you want. These are just some examples of anonymity based operating systems.

::IP address

Ok ok fine. I'll talk about hiding your IP. I'm not going to go quite as in depth as I may have with the other sections of this tutorial because this is only one part of being anonymous that people get too hung up on. Not that it's not important. People seem to think this is all you have to do to be anonymous though, and they are wrong. But, it wouldn't be a complete anonymity tutorial without this part now would it?

Proxies:

Wikipedia says: "In computer networks, a proxy server is a server (a computer system or an application) that acts as an intermediary for requests from clients seeking resources from other servers. A client connects to the proxy server, requesting some service, such as a file, connection, web page, or other resource available from a different server and the proxy server evaluates the request as a way to simplify and control its complexity. Today, most proxies are web proxies, facilitating access to content on the World Wide Web."

Ah yes. Proxies. Some of them log, and some of them don't, but how the hell do we know which ones do and don't? Hard to tell really. There are a few main different kinds of proxies.

- Transparent Proxies: Simply put, a transparent proxy is no good for doing anything illegal. You Ip address is logged and shown. Although these may have the advantage of being a bit faster.

- Anonymous Proxies: These hide your IP address. One downside is that anything you may connect to can probably tell that you are using a proxy. Which may cause problems for you in many cases.

- Elite Proxies: These hide your IP and may hide the fact that you are using a proxy at all. Which can be beneficial. These often times will be the slowest.

WARNING: Never assume that any proxy is not logging. Even if they say they aren't.

A good thing to look at is the country it is in. You should never use a proxy that is in the same country as you. If you've done something worth trying to track you down for, LE won't have any trouble doing so if you used a proxy in your country. What you want to do is figure out which countries have the best privacy laws. Or which ones have the worst so you can avoid them. As far as I know, Sweden has very good privacy laws. China or North Korea however, have shitty ones. The US isn't really the best for internet privacy either. So choose wisely.

Another thing to look at is the different kinds of protocols a proxy may use. Two of the most important ones are HTTP Proxies and SOCKS Proxies. People end up using HTTP proxies by default much of the time.

SOCKS Proxies are lower-level then HTTP Proxies. SOCKS uses a network handshake to send information about a connection. The SOCKS proxy then opens a connection, perhaps through a firewall. HTTP Proxies are transported over TCP and forwards an HTTP request through and HTTP server.

Some SOCKS Servers include:

- Dante
- ss5
- Nylon
- sSocks

A simple Google search will yield you some up to the minute proxy lists.

VPNs:

Wikipedia says: "A virtual private network (VPN) extends a private network and the resources contained in the network across public networks like the Internet. It enables a host computer to send and receive data across shared or public networks as if it were a private network with all the functionality, security and management policies of the private network.[1] This is done by establishing a virtual point-to-point connection through the use of dedicated connections, encryption, or a combination of the two."

There's a major difference between proxies and VPNs. That difference is anonymity vs. privacy. The best way I can explain this is that anonymity means that someone is sticking his dick in all of the birthday cakes, whereas privacy means that Timmy is in the room with all the birthday cakes, but no one knows what he's doing in there. Keep in mind:

proxy == anonymous(more or less)
VPN == private(Virtual PRIVATE Network)

Generally you can guess that the paid VPN's are going to be more reliable than the free ones, given that you aren't an idiot who paid for it with your personal credit card and your real name. Again, be aware of where the VPNs are located. So if you are in the US, maybe don't use openVPN for anything illegal. Their headquarters are located in California.

Tor:

I refuse to talk about Tor.

Proxy Chaining:

All I can say here is proxychains. It's a very useful tool and it's easy to use. With this tool you can chain proxy to proxy, proxy to VPN, proxy to VPN to Tor(if you want), proxy to proxy to proxy to proxy to proxy to VPN to proxy. But let's not get to excessive.

You will need to take a look at /etc/proxychains.conf. There isn't a manpage for it, all the directions you need are located in the config file. Basically what you do is add whatever proxies or VPNs you may want(make sure to note the IP and the port number) and you add them after this part:

Code: [Select]
[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
socks4  127.0.0.1 9050

The proxies you add should be in this format:

Code: [Select]
type  host  port

So for example:

Code: [Select]
socks4 198.10.23.100 80

Then you run the proxychains program.

Code: [Select]
proxyresolv targethost.com

Other Techniques:

Evidentally one of the best ways to remain anonymous is to code your own proxy server, say a SOCKS server, and use other people's personal machines as proxies. This way you can be absolutely sure that they don't log. Or you can also look into 3proxy which was posted by ande quite awhile back. There is also Botnet proxies if you feel like coding yourself a botnet if that's your thing. This is outside the scope of this tutorial however.

::Check Yourself Sites

http://whatsmyuseragent.com/

http://www.whatsmyip.org/

http://www.dnsleaktest.com/

::Anonymous Emailing


- SilentSender

- Send Anonymous Email

- GuerrillaMail

- DeadFake

- Mailinator

- Melt Mail

::Final Notes

This tutorial was inspired by all of the generic, useless, copy/paste anonymity tutorials out there. You know which ones I'm talking about. The ones that say:

"Here's a link to CyberGhost and what VPN's are, here's a proxy list, use Truecrypt, make sure to clean up with CCleaner, watch out for Viruses, here's some links to antiviruses. Full anonymous!"

To all those tutorials out there, thank you for motivating me to write this. This one's for you.

As I've said before, there is no one tutorial out there that will make you completely anonymous. Being completely anonymous is next to impossible. You can take as many precautions as you want but if the NSA is looking for you it doesn't matter how secure your Truecrypt password is and how many keyfiles you have. If you are important enough they won't really need to crack your password. They'll just beat it out of you. Besides many of the techniques I've outlined, being anonymous is common sense. Don't link you real email with you hacker identity. Don't talk about crimes you've commited. Use SSL with IRC. If you are going to do anything really serious, don't do it from home. Don't do it from your personal computer. Best of luck to all of you. Hope you gained something from this tutorial.

______________________________________________________________________________________________________

- lucid

Pages: [1] 2 3 ... 7


Intern0t SoldierX py1337 SecurityOverride programisiai iExploit
Want to be here? Contact Ande, Bluechill or Kulverstukas on the forum or at IRC.