Saturday, September 5, 2015

Audio Jack PWM

Needed a goodway to do pwm from the computer directly, went with the audio jack as the source. Pretty simple script and GUI but this damn bog is just a showcase in case for some reason I need to demonstrate whatever.




 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace PWMjack
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Go_Click(object sender, EventArgs e)
        {
            
            wavetime.Interval = Int32.Parse(avlue.Text);
            wavetime.Enabled = true;
        }
        private void wavetime_Tick(object sender, EventArgs e)
        {
            Console.Beep();
            wavetime.Interval = Int32.Parse(avlue.Text);
        }

        private void avlue_TextChanged(object sender, EventArgs e)
        {

        }

        private void track_Scroll(object sender, EventArgs e)
        {
            avlue.Text = track.Value.ToString();
            wavetime.Interval= Int32.Parse(avlue.Text);
        }
    }
    }

Friday, September 4, 2015

Phishbot: The Message: Part III

Okay, it is pretty easy from here. All we need to do now is inject some .NET into our solution to solve the issue of cross window communication( rather not edit all the JS right?).

My dorm neighbors are arguing over whether cardio or lifting makes you "more smarter"....


THe Cleverbot:

you can also get this straight from the C# but I don't give a flying.

Facebook is pretty simple we can measure where the mouse needs to be to click in the box and then we just type like a human with the .append() feature of C# or inject JS to do the same thing by installing a value into an active JS variable.

In C# (Mixing up the languages) we can write:
Coupled with a form like this:
which prints the current position of our cursor each time we press enter. Also for those Java fans out there:


MouseInfo.getPointerInfo().getLocation

and print it into a Jtextbox.

Now we simply need a form:

which navigates to the target and enters torrents of data to enter. The mouse can be maneuvered to the appropriate position like so:
for C# or:
for Java.

That ought to do it, I might fill in the details later for y'all but there is really no need. Happy fishing!

Thursday, September 3, 2015

PhishBot: The Message: Part II

McCormack here, signing in from a new IP. After being shipped off to college I have decided that in order to stay sane I will be working on many projects here as the "teachs" haven't yet given out busy work. Anyway from where we left off.


So we need a way to have JS message between two different windows, that way we can link a system like Cleverbot up to our Facebook Messaging Service for our Phishbot. There is such a way localStorage which ought to work here. Now we could run the whole system through Post and Pull requests but for right now we will wait and C(haha).

 To pull data from cleverbot is easy, we can identify the span or just hijack the share button for our nefarious purposes directly:


Okay, lets try hijacking first:

We need to get to this snipBox:


That is just a button click away or two, we just need to confirm that the button names are not dynamic like they are on fb, else we will have to switch our methodology as I demonstrated how to bypass dynamic web code in a previous post.

Trying directly from the console:

Success is undefined in a non philosophical way here because there isn't an ouput but that sure did open the first dialogue:

Finishing:


Okay and now we parse that data, but I have to go take a Spanish placement exam, so I'd rather make a new post after than continue this one.

Chao