Friday, September 15, 2017

Scripts to inject sample data to AlienVault OSSIM SIEM

Scripts to inject sample data to AlienVault OSSIM SIEM


I just published a few scripts I wrote to inject sample data to AlienVault or OSSIM (Open Source Version) Unified SIEM. Those can be found in Github:

https://github.com/santiago-bassett/Alienvault-Demo_scripts

The scripts are ready to emulate Syslog data coming from these sources: Aruba Wireless, Cisco ASA, Cisco PIX, ClamAV, Oracle Database, OSSEC HIDS, Sonicwall and SSH.

As well, the scripts are ready to inject malicious network traffic in a dummy interface so it can be analyzed by Snort NIDS. Some of the traffic injected is related to: botnets, C&C communications, Zeus, spambot or spyware. The pcap files can be found in this directory:

https://github.com/santiago-bassett/Alienvault-Demo_scripts/tree/master/pcaps

download file now

Read more »

Senior Correspondent Arnold Woodworths Weekly Web Wrap up for Tuesday October 18th

Senior Correspondent Arnold Woodworths Weekly Web Wrap up for Tuesday October 18th


Apple to announce new Macs on Oct 27th
The last time Apple significantly updated its top-of-the-line MacBook Pro�was back in 2012. Since then, the laptop has been updated to include a Retina display and a Force Touch trackpad,�but a major revamp has been long overdue.
http://www.theverge.com/2016/10/18/13202638/apple-new-macbook-pro-air-iMac-fall-event-2016
http://appleinsider.com/articles/16/10/18/apple-to-debut-new-macs-at-oct-27-event-report-says
http://www.recode.net/2016/10/18/13323264/apple-new-macs-october-27
Video:
11 keyboard shortcuts only Mac power users know about
Excellent hints.
http://www.businessinsider.com/hidden-mac-keyboard-shortcuts-2016-10
Video:
The Apple Pencil is changing Rapha�s design workflow
Apple has jumped on this opportunity to produce a good-looking�short film�about Valdman and Rapha in general. And it�s interesting to see how a peripheral device like the Apple Pencil can�affect the workflows of non-tech companies.
https://techcrunch.com/2016/10/18/the-apple-pencil-is-changing-raphas-design-workflow/
These high-tech tattoos enable you to control electronic devices
...�temporary tattoos made of conductive materials that can be used to control electronic devices, such as phones and computers.
They enable the user to interact with their gadgets in several ways
http://www.marketwatch.com/story/these-high-tech-tattoos-enable-you-to-control-electronic-devices-2016-10-12
One thing your router needs now to keep�hackers out
Hackers are continually looking for targets, and all they need to get to the personal files and devices on your network are your router�s IP address�and your administrative password. A simple Google search is all it takes to find both for just about any router make and model.

Once hackers have this information from a router that hasn�t been updated, they can steal your files, peek through your webcam or worse. They can�start sniffing data that�s passing to and from your router. They can record all your online activity, including usernames and passwords. They can even�reroute your traffic to fake websites.

Routers can also be taken over to perform illegal activities, such as denial of service attacks or piracy. The scary part is you might not even know�your router is compromised and being used for nefarious deeds.

If you�re not regularly updating your router with new firmware, you�re ripe for attack.
While updating a router is easy for a computer nerd, it can be difficult if you�re not.
Also, router manufacturers don�t notify you about their updates (unlike Apple�s automatic notifications).
http://www.foxnews.com/tech/2016/10/01/one-thing-your-router-needs-now-to-keep-hackers-out.html
Heres How Quantum Computing Will Change The World
Like the first digital computers,�quantum computing offers the possibility of technology millions of times more powerful�than current systems, but the key to its success will be translating real world problems into quantum language.
Quantum computing has to potential to solve � easily � many complex problems that require excessively long times to solve on digital computers.
http://www.forbes.com/sites/gregsatell/2016/10/02/heres-how-quantum-computing-will-change-the-world/#4a1e85b4570d
This guy says Twitter is censoring his tweets.
He wrote:
"Twitter is blocking you from seeing them [some of my tweets] without�any�notice to you, or to me, that theyre doing it."
http://www.market-ticker.org/akcs-www?post=231557
Pundits have been crediting the recent�Apple stock price�gains to the Samsung Galaxy Note 7 disaster, but they have made the mistake of drawing an obvious conclusion�thats actually only part of the story.
To catch you up: Samsung was forced to suspend sales of its flagship Galaxy Note 7 on Aug. 31, less than two weeks after the smartphone went on sale, following reports of�exploding devices. Attempts to fix the problem failed, forcing Samsung to pull the Galaxy Note 7 entirely on Oct. 11.
Instead of harping on slowing iPhones sales as they had for most of the year, more analysts started to notice Apples growing revenue from services.
The services segment � things like the App Store, Apple Pay, and Apple Music � is now Apples second-largest source of revenue behind the iPhone.
Growth in services shows Apple is getting better at monetizing its base of customers in a more consistent way, rather than depending almost entirely on hardware upgrades�every few years.
Credit Suisse has forecast that income from Apple services will double in less than four years.
http://moneymorning.com/2016/10/13/apple-stock-price-gains-are-driven-by-this-trend-not-samsung/
Apple issues iOS update to fix iPhone 7 cellular connectivity�issues
Verizon customers were complaining of spotty service
Apple�released an iOS update�today to address the complaints of thousands of Verizon customers who were experiencing signal drops and unexplainable issues with GPS when using the�iPhone 7 and iPhone 7 Plus. The update is numbered 10.0.3, and it�s solely focused on fixing the cellular connectivity issues for those two phones. If you have an older iPhone, you won�t see the�update pop up.
http://www.theverge.com/2016/10/17/13306776/apple-iphone-7-plus-ios-update-verizon-cellular-connectivity
A month with the iPhone 7
In the month I�ve spent with Apple�s new iPhone 7 and iPhone 7 Plus, two things have become increasingly apparent to me. The first is that these are Apple�s best ever iPhones in far�more ways than I thought they would be. The second is that the iPhone 7 Plus is now�the iPhone.
http://bgr.com/2016/10/17/iphone-7-plus-review-one-month-later/
Up until recently, handling an iPhone at an Apple Store involved dealing with its unwieldy security tether, a sometimes cumbersome experience that prevented potential buyers from getting a true idea of how it feels to hold�and handle Apple�s handset.

At some stores, however, the tech giant has been removing the tethers for a better customer experience as well as cleaner bench displays more in keeping with the minimalist design of Apple�s brick-and-mortar locations.

Yes, it does mean someone could, in theory, enter the store, pick up a phone, pop it in their pocket, and walk out, but the fact that the trial appears to be expanding to multiple locations suggests Apple is pleased with the�way it�s going. In other words, it hasn�t lost too many phones yet.

http://www.digitaltrends.com/mobile/apple-store-iphone-freedom/
How to pick the perfect iPhone for you
http://www.macworld.com/article/3122398/iphone-ipad/best-iphone-reviews.html
Apple Offers a Temporary Workaround if the Home Button Fails on an iPhone 7

MacRumors�forum member iwayne�shared the above picture�of his iPhone 7 display after the device unexpectedly turned itself off while charging and the haptic feedback began malfunctioning after a restart.�A dialog prompt warns that the home button is in need of repair, but presents an alternative onscreen home button for temporary use until the phone has been turned in to Apple for servicing.
http://www.macrumors.com/2016/10/15/apple-workaround-home-button-fails-iphone-7/
iPhone 7 has created a wave of users who now use their smartphones in�the shower
Thanks to Apple�s decision to remove the 3.5mm headphone jack, the iPhone 7 is without question the most water-resistant iPhone ever released.
Pushing the envelope even further,�Gizmodo�reports�on a seemingly ridiculous yet not altogether surprising new trend among iPhone 7 owners: using the device in the shower and�boasting about it on social media.
Sure, it�s easy to laugh at this tomfoolery, but Apple itself has made a point to position the iPhone 7�s robust water resistance as a key selling point.
http://bgr.com/2016/10/17/iphone-7-water-resistance-shower/
Using Your iPhone 7 in the Shower Is the Latest Status Symbol
http://gizmodo.com/using-your-iphone-7-in-the-shower-is-the-latest-status-1787874768
The iPhone 7�s missing headphone jack has turned out just fine
http://www.recode.net/2016/10/16/13298160/iphone-7-plus-headphone-jack-email-battery-life
APPLE is reportedly preparing to add your trusty old iPhone 4 to its �obsolete list� � making it potentially worthless.
Apple says on its website: �Owners of�iPhone, iPad, iPod, or Mac products may obtain service and parts from Apple or Apple service providers for 5 years after the product is no longer manufactured�or longer where required by law.
https://www.thesun.co.uk/news/1993244/old-iphone-obsolete-apple/
5 Things the iPhone Can Do That the Google Pixel Can�t
Water resistance
Better camera
More colorful display
Works Faster
iOS
http://www.cheatsheet.com/gear-style/things-iphone-can-google-pixel-cant.html/
Ultimate hurt for Apple�s strongest competitor
It is now a federal crime to bring a Galaxy Note 7 onto an airplane
Offenders are subject to civil penalties of up to $179,933 for each violation
http://www.theverge.com/2016/10/16/13298846/galaxy-note-7-federal-crime-federal-aviation-administration
Is the Apple Watch now the most accurate wearable?
The Apple Watch has been touted as the most accurate wrist-based wearable in a new study from the Cleveland Clinic, published in JAMA Cardiology.

The study was performed on 50 healthy adults, who wore an electrocardiogram (EKG), Fitbit Charge HR, Apple Watch, Mio Alpha, Basis Peak, and a chest strap for several hours.
Wearables have become far more accurate in the past few years, but Cleveland Clinic�s study clearly shows there�s more work to be done.
Is the Apple Watch now the most accurate wearable?
Mossberg: Why does Siri seem so dumb?

It seems to me that Apple has wasted its lead with Siri. And now Google, Amazon, Microsoft, Facebook and others are on the march.
When�s the presidential debate? Siri had no clue.
http://www.recode.net/2016/10/12/13251618/mossberg-apple-siri-digital-assistant-dumb
The obscure legal mechanism Apple uses to keep its trademark�filings secret for six months
https://9to5mac.com/2016/10/17/apple-trademark-secrets/
8 out of 10 software engineering jobs are still going to men ... and thats a big improvement for women

http://www.businessinsider.com/80-percent-software-engineering-jobs-go-to-men-2016-10


These 11 brilliant visualizations show the insides of complex things

http://www.businessinsider.com/look-inside-cutaway-illustrations-2016-10/#published-in-1968-robert-w-nicholsons-cutaway-illustration-of-the-white-house-showed-details-most-people-had-never-seen-1



Facebook is leaking valuable younger users
Snapchat and Instagram climb with teens as Facebook stumbles

Facebook has been struggling to bring in younger users for several years now and it looks like the problem is getting worse.

According to Piper Jaffray Companies, a recent survey of 10,000 U.S. teenagers showed that 52% used Facebook at least once a month this fall, compared to 60% who used it monthly in the�spring.

http://www.computerworld.com/article/3132527/social-media/facebook-is-leaking-valuable-younger-users.html



Video:
This is how youre compromising your identity on Facebook

The main reason is over-sharing � publishing information about yourself or your family that would be useful to criminals.

http://www.businessinsider.com/security-identification-facebook-geotagging-2016-10


How to Foil a Tech-Support Scam
Fraudsters are getting cleverer and more aggressive�but the government is cracking down.

Locker-type scams mostly being launched from overseas, where attackers can more easily avoid getting in trouble for infecting American computers. Hacking charges in the U.S. are no joke.

Instead, domestic scammers prefer operating in a legal gray area that can keep them from getting in too much trouble if they wind up in court. If they provide genuine tech-support services and�can confuse less-than-savvy judges with technical minutiae, they can escape punishment, the Malwarebytes researcher said.

http://www.theatlantic.com/technology/archive/2016/10/when-computer-help-hurts/504467/


Even Bugs Will Be Bugged

1) Cameras Will Be Invisible
2) Your Past Will Be Omnipresent
3) We�ll Let Spies In
� � �how easy it is to spy on people through the gadgets in their homes
4) Machines Will Decide Our Fates
� � �We�re creating a world size robot.
� � �Such automation may increase efficiency, but it won�t eliminate injustice.
5) Society Will Be Safer but Creepier

http://www.theatlantic.com/magazine/archive/2016/11/even-bugs-will-be-bugged/501113/



Half of American adults appear in facial recognition databases � and police are using them with almost no oversight

On Tuesday, the American Civil Liberties Union, along with 51 other advocacy groups, wrote a letter decrying the technology � which is being used by a growing number of law enforcement�agencies across the country � for its lack of oversight and potential to disproportionately affect communities of color.

So far, no state has passed a comprehensive law regulating police departments use of the technology, according to the report by the Center on Privacy and Technology at Georgetown�Universitys law school.

http://www.businessinsider.com/police-using-facial-recognition-databases-with-almost-no-oversight-2016-10

download file now

Read more »

SEED FILL Algorithm

SEED FILL Algorithm


#include<stdio.h>
#include<graphics.h>
void right_fill(int x, int y);
void left_fill(int x, int y);
int main()
{
 int gd=DETECT, gm,op,i,x,y,n,a[10][3];
   printf(" Enter no. of vertices : ");
 scanf("%d", &n);
 for(i=0;i<n;i++)
    {
     printf(" Enter the co-ordinates : ");
     scanf("%d%d", &a[i][0], &a[i][1]);
    }
    printf(" Enter seeding point : ");
    scanf("%d%d", &x, &y);
    initgraph(&gd, &gm, NULL);
    for(i=0;i<n;i++)
    {
     line(a[i][0], a[i][1], a[(i+1)%n][0], a[(i+1)%n][1]);
    }
    right_fill(x,y);
    left_fill(x-1,y);
    getch();
}
 void right_fill(int x, int y)
 {
  while((getpixel(x,y)!=WHITE) && (getpixel(x,y)!=RED))
  {
   delay(1);
   putpixel(x,y,RED);
   right_fill(++x,y);
   x=x-1;
   right_fill(x,y-1);
   right_fill(x,y+1);
  }
 }
 void left_fill(int x, int y)
 {
  while((getpixel(x,y)!=WHITE) && (getpixel(x,y)!=RED))
  {
   delay(1);
   putpixel(x,y,RED);
   left_fill(--x,y);
   x=x+1;
   left_fill(x,y-1);
   left_fill(x,y+1);
  }
 }

download file now

Read more »

Set up GlusterFS with a volume replicated over 2 nodes

Set up GlusterFS with a volume replicated over 2 nodes


The servers setup:

To install the required packages run on both servers:
sudo apt-get install glusterfs-server
If you want a more up to date version of GlusterFS you can add the following repo:
sudo add-apt-repository ppa:semiosis/ubuntu-glusterfs-3.4
Now from one of the servers you must connect to the other:
sudo gluster peer probe <ip_of_the_other_server>
You should see the following output:
peer probe: success
You can check the status from any of the hosts with:
sudo gluster peer status
Now we need to create the volume where the data will reside. For this run the following comand:
sudo gluster volume create datastore1 replica 2 transport tcp <server1_IP>:/mnt/gfs_block <server2_IP>:/mnt/gfs_block
Where /mnt/gfs_block is the mount point where the data will be on each node and datastore1 is the name of the volume you are creating.

If this has been sucessful, you should see:
Creation of volume datastore1 has been successful. Please start the volume to access data.
As the message indicates, we now need to start the volume:
sudo gluster volume start datastore1
As a final test, to make sure the volume is available, run gluster volume info.
sudo gluster volume info 
Your GlusterFS volume is ready and will maintain replication across two nodes.
If you want to Restrict Access to the Volume, you can use the following command:
sudo gluster volume set datastore1 auth.allow gluster_client1_ip,gluster_client2_ip
If you need to remove the restriction at any point, you can type:
sudo gluster volume set volume1 auth.allow *

Setup the clients:

Install the needed packages with:
sudo apt-get install glusterfs-client
To mount the volume you must edit the fstab file:
sudo vi /etc/fstab
And append the following to it:
[HOST1]:/[VOLUME]    /[MOUNT] glusterfs defaults,_netdev,backupvolfile-server=[HOST2] 0 0
Where [HOST1] is the IP address of one of the servers and [HOST2] is the IP of the other server. [VOLUME] is the Volume name, in our case datastore1 and [MOUNT] is the path where you whant the files on the client.

Or, you can also mount the volume using a volume config file:

Create a volume config file for your GlusterFS client.
vi /etc/glusterfs/datastore.vol
Create the above file and replace [HOST1] with your GlusterFS server 1, [HOST2] with your GlusterFS server 2 and [VOLNAME] with the Gluster FS volume to mount.
 volume remote1
 type protocol/client
 option transport-type tcp
 option remote-host [HOST1]
 option remote-subvolume [VOLNAME]
 end-volume

 volume remote2
 type protocol/client
 option transport-type tcp
 option remote-host [HOST2]
 option remote-subvolume [VOLNAME]
 end-volume

 volume replicate
 type cluster/replicate
 subvolumes remote1 remote2
 end-volume

 volume writebehind
 type performance/write-behind
 option window-size 1MB
 subvolumes replicate
 end-volume

 volume cache
 type performance/io-cache
 option cache-size 512MB
 subvolumes writebehind
 end-volume
Finally, edit fstab to add this config file and its mount point. Replace [MOUNT] with the location to mount the storage to.
/etc/glusterfs/datastore.vol [MOUNT] glusterfs rw,allow_other,default_permissions,max_read=131072 0 0

download file now

Read more »

SERVICE OPTIC PS 2

SERVICE OPTIC PS 2


Teman-teman yang ps2 nya masih menggunakan cd/dvd untuk main game (belum upgrade pake HDD) , pernah ga ngalami ps2 nya suka milih-milih cd/dvd game. Biasanya game nya jalan kalo kita masukin kaset yang baru, ada juga yang harus nunggu ps2 nya panas dulu baru kaset game nya bisa jalan.

Kalau tema -teman pernah ngalami berarti optik ps2 teman perlu sedikit maintenance.
Ini saya share tutorial maintenance optic ps2.

Pertama kita siapin keperluan dan bahannya sbb:
  1. Obeng kuncup (obeng +) kalo ada dari semua ukuran.
  2. Kapas secukupnya.
  3. Lens cleaner.
  4. Cotton bud.
Ok sudah cukup segitu aja dulu.
Langsung kita kerjakan.....siap grak... uss ini bukan upacara bendera!!

Pertama buka penutup baut pada bagian bawah ps2, ambil obeng lepaskan baut-bautnya, terus buka cover atas ps2

undefined

Buka cover cd tray dengan melepas baut-baut kecil diatasnya, ada juga yang tidak mengunakan baut, hanya pakai pengunci tergantung type dan seri ps2. Seperti gambara dibawah.

undefined

Tancapkan steker /colokan ps2 ke stop kontak, hidupin saklar belakang ps2, eject cd tray nya, kalo cd tray nya udah keluar segera matikan saklar belakang ps2 dan cabut colokan/steker dari stop kontak untuk menghindari hal-hal yang tidak di inginkan. seperti gambar dibawah.

undefined

Selanjutnya buka tutup optik, cari-cari pengunci nya, dorong penguncinya dengan obeng kecil.

undefined

Ambil cotton bud basahi ujung-ujung nya dengan lens cleaner(jangan terlalu basah/cukup setengah basah) bersihkan permukaan lensa optik. Gosok dan bersihkan dengan hati-hati sekali.
seperti gambar di bawah.

undefined

Jangan lupa berihkan juga lensa optic pada bagian bawah, angkat sedikit lensa optik yang atas dengan cotton bud, seperti gambar di bawah.

undefined

Sampai disini teman sudah bisa menutup cover optiknya, dan cover cdrom ps2 bisa kita tutup, kita mau lihat hasil kerja kita... ok setuju.
Selanjutnya tancapkan steker ps2 di stop kontak, hidupin saklar belakang ps2 dan terus pencet reset, maka cd tray akan tertutp. Open/eject cd tray masukin dvd game dan....tunggu.....jreng, game langsung loading siap untuk nge game.

Bila belum ada hasil, padahal teman sudah melakukan semua langkah tutorial diatas, dan terdengar sura aneh sepeti krek...krek di dalam cdrom ps2, berati kita perlu maintenance tambahan. Untuk maintenace tambahan baca tutorial selengkapnya, dan di download dulu disini

SELAMAT MENCOBA

download file now

Read more »