Code Vault

From Sfvlug

(Difference between revisions)
(Access Database to HTML)
(Access Database to HTML)
Line 23: Line 23:
I know of at least two people in the LUG who were interested in this functionality. Code is GPL.
I know of at least two people in the LUG who were interested in this functionality. Code is GPL.
 +
 +
Return to [[Main Page]]
 +
== Bluetooth enumeration ==
 +
Some bluetooth code
 +
 +
#!/bin/bash
 +
#Mother of bluetooth scanners
 +
 +
#hcitool scan | grep -v "Scanning ..." | awk -F " " '{print $2,$3}' > output.txt
 +
 +
pingCount=5
 +
bdAddress=`cat output.txt | awk '{print $1}'`
 +
echo "Running recon on $bdAddress"
 +
echo "Pinging...."
 +
l2ping -i hci0 -c $pingCount $bdAddress
 +
sdptool browse $bdAddress > $bdAddress.sdptool
 +
Return to [[Main Page]]
Return to [[Main Page]]

Revision as of 23:48, 27 November 2006

What is the best way to contribute code? Should it just be placed here or should a seperate page be created?

Good question, I had intended to leave a lot of that type of decision up to whoever posted something but since this is going to be a community page it might be better to keep it less cluttered so I will suggest making a brief statement here about the code and a link to the page where the actual code lives. The discussion tab Talk:Code Vault can be used for comments rather than making further clutter here. If you haven't gotten the copyright holder's permission to use the code the link should be to the original source.

Here are some examples to give everyone a better idea, we can clean this area up later once we get more contributions:

(Let's say I'm not about the license and don't know if it is OK to reproduce.)

Contents

Hello World

Hi all, I found this great little script, it is a Bash script you can run at the command line and it actually will print "Hello World" to your terminal. You can find it here: http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-2.html#ss2.1

(Now, let's say I wrote it myself or have permission to reproduce.)

Hello World

Guyz! I wrote this killer app that will actually print "Hello World" from the command line. Check it out! Hello World


Access Database to HTML

I have written a bash script that converts Access databases to HTML. Source Code

I know of at least two people in the LUG who were interested in this functionality. Code is GPL.

Return to Main Page

Bluetooth enumeration

Some bluetooth code

  1. !/bin/bash
  2. Mother of bluetooth scanners
  1. hcitool scan | grep -v "Scanning ..." | awk -F " " '{print $2,$3}' > output.txt

pingCount=5 bdAddress=`cat output.txt | awk '{print $1}'` echo "Running recon on $bdAddress" echo "Pinging...." l2ping -i hci0 -c $pingCount $bdAddress sdptool browse $bdAddress > $bdAddress.sdptool


Return to Main Page

Personal tools