Information Security

Amazon tries to ruin infosec world's fastest-growing cottage industry: Finding data-spaffing S3 buckets

The Register - Fri, 11/16/2018 - 17:12
AWS comes up with blanket policies to smother public-facing cloud storage silos

Amazon Web Services is taking steps to halt the epidemic of data leaks caused by the S3 cloud buckets it hosts from being accidentally left wide open to the internet by customers.…

CTF name voting

Your hacking tutorial - Fri, 11/16/2018 - 17:10

We are creating a free community based CTF for all. Please vote on a name.

submitted by /u/c00lme1
[link] [comments]
Categories: Information Security

How I finally got rid of Google Assistant!

Android - Fri, 11/16/2018 - 16:57

So a while ago I posted this screenshot and asked how to stop Google Assistant appearing. It usually only appears when using the home button, but for my phone the shortcut is when you swipe up. This means whenever I am scrolling, Google Assistant occasionally pops up and gets in my way.

For those like me who want Google Assistant to go away, and don't have the option to uninstall this is how to get rid of it.

Samsung: Settings > Apps > Three Dots > Default Apps > Device Assistance App > Device Assistance App > None (or select another shortcut if you want).

Huawei: Settings > Apps & Notifications > Default Apps > Assistance and Voice Input > Assist App > None (or select another shortcut if you want).

Honestly this has been such a pain in the ass for me, I'm really happy to finally have it gone.

submitted by /u/Lessanonaccount
[link] [comments]

The Kilogramme Will Cease To Be A Physical Entity

Hack a Day - Fri, 11/16/2018 - 16:00

One of the most illuminating high school courses no doubt for many readers as much as for your scribe, was the series of physics lessons during which the SI units were explained. That glorious sense of having the order of the universe unlocked into an interlocking series of units whose definitions could all be derived in terms of a series of base units was mind-blowing in those early teen years, and even though the explanations might have been at a for-the-children level that has been blown out of the water by later tiers of learning it’s still a bedrock that will serve an engineer or scientist life-long.

The definitions of the SI base units have evolved with scientific advancement to the point at which they are no longer tied to their original physical entity definitions. Of all the base units though there is still one that has resisted the urge to move away from the physical: the kilogramme (giving it its French spelling to preserve context) is still defined in terms of a metal cylinder in a laboratory just outside Paris. Kg diehards have not much time left to cling onto their platinum-iridium alloy though, for a new definition has been adopted in which it is derived from Planck’s Constant. From next May this will become the official kilogram, at which point concerns over microscopic erosion of the metal standard become irrelevant, and an SI kilogram can be replicated by any laboratory with the means to do so.

The piece of apparatus that makes this definition possible is the Kibble balance, a balance in which the force required to overcome the effect of gravitational force on a given mass is measured in terms of the electrical power required to do so. The gravitational force at a given point can be measured accurately and is defined in terms of the other SI units, while the electrical power can be derived from a Josephson junction, a superconducting junction whose current is defined in terms of Planck’s constant. As a result, the kilogram can be measured solely in terms of the constant and other SI units, consigning the metal cylinder to history.

This high-end metrology and physics make for interesting reading, but it’s fairly obvious that the de facto kilogram we all use will not change. Our everyday measures of everything from sugar to PLA filament will be the same today as they will be next May. But that’s not the point, everyday measurements do not need the extreme accuracy and reproducibility of a laboratory. The point of it all comes in as yet unforseen applications, as an example would the ability to synchronise timing to create GPS or digital radio have been possible were the second to be still defined in terms of astronomical movements rather than atomic states?

Standard kilogramme replica picture: Japs 88 [CC BY-SA 3.0]

Any way to trigger Silent Mode on Android P yet?

Tasker: Total Automation for Android - Fri, 11/16/2018 - 15:37

I'm not interested in DND, just silent mode that can be accessed in the phone's volume menu.

submitted by /u/raddacle
[link] [comments]

Pick three people you think will replace Google Cloud CEO Greene, then forget them – because it's Thomas Kurian

The Register - Fri, 11/16/2018 - 15:35
Ex-Oracle man gets top job as another experienced woman exec quits web ads titan

Google Cloud CEO Diane Greene has quit the online ads giant, and will be replaced by ex-Oracle executive Thomas Kurian.…

Microsoft slammed in Europe for 'large scale and covert' gathering of people's info via Office

The Register - Fri, 11/16/2018 - 15:17
You've broken the GDPR, baby, Dutch govt eggheads reckon

Microsoft carried out "large scale and covert" gathering of private data through its Office subscriptions.…

Scammed

Your hacking tutorial - Fri, 11/16/2018 - 14:50

If anyone can help me in my situation i'd be so grateful.

I am 13 years old and I bought an account for a game from someone I found on Discord.

I asked my dad before buying to make sure I was aloud and he said yes.

Obviously, with me being young and gullible, I got scammed. I have repeatedly tried to ask him for the account I paid for and every time I message him he just disappears and goes offline.

If anyone can help me do to try and "scare" him into actually giving me what I paid for i'd be grateful.

Before you say go to the police, I can't. I bought an account for Fortnite and its against the ToS to buy and sell them anyway, so it wouldn't do anything.

Thanks.

submitted by /u/Perqaz
[link] [comments]
Categories: Information Security

[Help] Loop a video fullscreen

Tasker: Total Automation for Android - Fri, 11/16/2018 - 14:33

I am trying to find the most reliable way to have a video play on my tablet fullscreen on loop with no controls showing. My original idea was simply a webpage and leave chrome open but I wasn't aware that extended desktop doesn't hide the URL bar.

The only issue is that the video updates every hour and needs to be redownloaded. I can handle that with tasker or a web page. But whatever is showing the video needs to be able to refresh it when tasker says so. Tasker will poll a web page to check when to update the video. This can also be handled in javascript if the best solution is to display a webpage fullscreen.

  • Chrome - shows URL bar
  • VLC - can't set loop via intent (or can I?)
  • tasker scene - no video option, display web page doesn't allow video player to work properly

Tasker will also be turning the screen on and off periodically. I am not worried about locking out user input, it is assumed that no one will be fiddling with it.

submitted by /u/heynineclicks
[link] [comments]

DIY Telepresence Robot Built From Off-The-Shelf Parts

Hack a Day - Fri, 11/16/2018 - 14:30
Petite, but it does the job. Note the huge LED headlight in the center.

Telepresence hasn’t taken off in a big way just yet; it may take some time for society to adjust to robotic simulacra standing in for humans in face-to-face communications. Regardless, it’s an area of continuous development, and [MakerMan] has weighed in with a tidy DIY build that does the job.

It’s a build that relies on an assemblage of off-the-shelf parts to quickly put together a telepresence robot. Real-time video and audio communications are easily handled by a Huawei smartphone running Skype, set up to automatically answer video calls at all times. The phone is placed onto the robotic chassis using a car cell phone holder, attached to the body with a suction cup. The drive is a typical two-motor skid steer system with rear caster, controlled by a microcontroller connected to the phone.

Operation is simple. The user runs a custom app on a remote phone, which handles video calling of the robot’s phone, and provides touchscreen controls for movement. While the robot is a swift mover, it’s really only sized for tabletop operation — unless you wish to talk to your contact’s feet. However, we can imagine there has to be some charm in driving a pint-sized ‘bot up and down the conference table when Sales and Marketing need to be whipped back into shape.

It’s a build that shows that not everything has to be a 12-month process of research and development and integration. Sometimes, you can hit all the right notes by cleverly lacing together a few of the right eBay modules. Getting remote video right can be hard, too – as we’ve seen before.

Visual Studio 2017 15.9 is here! Fire up your Windows on Arm laptops. All four of you

The Register - Fri, 11/16/2018 - 14:23
Final update of beloved development adding ARM64

Microsoft devs rejoice! A new version of Visual Studio 2017 has arrived replete with fixes, tweaks and ARM64 support.…

The week in networking? It's SD-WAN all the way down

The Register - Fri, 11/16/2018 - 14:00
Also: Huawei cloud lands in Africa, Nokia OpenStack, Cisco Nexus BIOS bugs

Riverbed made two announcements covering its SteelHead SD-WAN solution this week – a bunch of enhancements, and subscription pricing options.…

FPGA Testbenches Made Easier

Hack a Day - Fri, 11/16/2018 - 13:01

You finally finish writing the Verilog for that amazing new DSP function that will revolutionize human society and make you rich. Does it work? Your first instinct, of course, is to blow it into your FPGA of choice and see if it works. If it does, that was a great idea. If it doesn’t, it was a terrible idea because — typically — it is hard to look inside the FPGA. That’s why you’ll typical simulate your logic on a desktop computer before you commit it to the FPGA. But that means you have to delay gratification long enough to write a testbench — a piece of hardware description language (HDL) code that exercises the function you wrote. In this post I’ll show you a small piece of software that can read your Verilog module and automatically create most of a testbench for you. The code originally came from GitHub, but I wanted to make some changes to it, so I forked it and I’ll tell you about the changes I made. This isn’t specific to a particular FPGA. Any Verilog project can use the tool to generate a simple starter testbench.

Writing a testbench isn’t that hard. You usually use the same language you wrote the original code in but since it won’t reside in silicon, you can do things in the simulator that you can’t get away with in code that you’ll synthesize. However, it is a bit painful to have to always write more or less the same code, especially if you have a lot of modules you want to test. But it is a good idea to test small modules before linking them together and then test them linked together, too. With this little Python script, it is very easy to generate a simple testbench and then further elaborate it. It isn’t life-changing, but it does save some time. If you want to try this out, you’ll need something to run the Python script on, of course. You also need a Verilog simulator or you can use EDA Playground to try all this out in your browser.

Anatomy of a Testbench

A Verilog testbench usually had a few major sections:

  1. A module with no inputs or outputs. This is like the main function of a C program.
  2. Reg variables for all the inputs you want to feed to the device or devices under test.
  3. Wire variables for all the outputs you want to monitor for the device or devices under test.
  4. An initial section that initializes all the reg variables.
  5. Since the device under test probably needs a clock, an always block or a forever loop will create the clock in one of the reg variables.
  6. Since the device under test probably needs a reset, you’ll frequently start out by generating a reset.
  7. You’ll want to send some special commands to the Verilog simulator to ask it to monitor certain signals and record them to a file. You can also just print things like a pass/fail message, but usually you want a file with the signal tracing.
  8. You’ll then send the device under test whatever input vectors you want placing an appropriate time delay between signal transitions.

There are two features of the Verilog simulator that make this work. First, you have a timescale statement at the start of the testbench that tells the simulator what each “tick” represents and how precise the tick is. For example, you might have `timescale 1ns/100ps which means that a delay of 1 means 1 nanosecond with sufficient resolution for 1.1 and 1.2 nanosecond delays. Contrast that to `timescale 1ns/1ns which only has 1 ns resolution. If you wrote 1, 1.1, and 1.2 nanosecond delays, they would be rounded to be the same 1 ns delay. Of course, delays aren’t something you can use in code that targets the FPGA, but in the simulation, they are fair game.

So, for example, if you wanted to assert a signal for 5 nanoseconds (given the above timescale) you might write:

reg thesignal=0; ... thesignal=1'b1; #5 thesignal=1'b0;

An Example Testbench

Armed with all this, let’s jump into a simple test bench. The device under test doesn’t matter, although it is the example on GitHub, if you are curious. I’m going to break it up into pieces:

`timescale 1ns/1ns //Adjust to suit module tb_top;

This is the timescale and the module with no I/O. The next section covers the input and output variables for the device under test.

reg clk ; reg rst ; reg run ; reg hold ; wire LED1 ; wire LED2 ; wire LED3 ; wire LED4 ;

Here’s where you create the module you want to test. UUT stands for Unit Under Test.

top uut ( .clk ( clk ), .rst ( rst ), .run ( run ), .hold ( hold ), .LED1 ( LED1 ), .LED2 ( LED2 ), .LED3 ( LED3 ), .LED4 ( LED4 ) );

The period of the clock will be 10 nanoseconds.

parameter PERIOD = 10; //adjust for your timescale

This section of code will set the output file, set what we want to look at, and generate the clock. The $dumpvars statement tells the simulator to start at tb_top (this module) and do as far as the next layer in the hierarchy.

initial begin $dumpfile("tb_output.vcd"); $dumpvars(2, tb_top); clk = 1'b0; #(PERIOD/2); forever #(PERIOD/2) clk = ~clk; end

I usually use an always block to generate the clock, but a forever loop like this works too. You just can’t put anything after it except the end since the loop never exits. But as you can see below, it works fine.

This little snippet handles the reset signal. Note that the reset signal is negative you only have to change the first zero.

initial begin rst=1'b0; #(PERIOD*2) rst=~rst; #PERIOD rst=~rst; end

Finally, we initialize the device inputs, wait a bit for the reset to settle, and then give it some test inputs. After waiting a bit, we call $finish to stop the whole thing.

initial begin run=1'b0; hold=1'b0; #(PERIOD*10) run=1'b1; #PERIOD run=1'b0; #(PERIOD*1024) hold=1'b1; #PERIOD hold=1'b0; #(PERIOD*100) $finish; end endmodule Automation

The original Python program I found on GitHub did most of this. However, a lot of things were hardcoded and although it detected the reset signal, it didn’t do anything with it. What’s more, it not only didn’t exercise reset, but it also didn’t do any of the test signals for you, which is understandable. However, if you made a change to the file and then wanted to regenerate the test bench (perhaps your module changed its inputs and outputs) you’d lose your changes!

I forked the code and changed it to run with Python 3, added command line options to it, and then made some changes to pulse reset. To handle your addition, the testbench includes a file that you can use to write your own test code. That way regenerating the test bench won’t clobber your code.

These are all simple changes, but they pay off. If you use no options, you get sensible defaults. However, you can specify any or all of the following:

  • -d – Set custom dumpfile name
  • -i – Set custom user include file
  • -l – Set dumpvars level
  • -p – Set period
  • -r – Make reset active low
  • -t – Set timescale

So in the above example, the final initial block would wind up in the user include file since the script didn’t generate it. All the rest of it was the automatic output from the tool.

Try It

There’s an example module, top.v, included in my fork of the project. Actually, you’ll see this again in a future post about embedding logic analyzers, but for now, I reduced the timing delays to make it easier to simulate. This isn’t uncommon since a one-second delay at 12 MHz takes 12 million clock cycles.

The defaults for this are just fine so issue a command like:

./tbgen.py top.v tb_top.v

Of course, you don’t need the ./ if the executable is on your path. Now you need to simulate the tb_top.v file. I’ve already provided the user include (user.tb_top.v), but if you were starting from scratch you’d have to create that file even if it were empty. This is the file that holds your specific tests to carry out.

If you use Icarus, your simulation might look like this:

iverilog tb_top.v top.v -o tb_top vvp tb_top gtkwave tb_output.vcd

If you don’t want to install anything, you can try EDA Playground. Just put the testbench file in the left-hand pane and the top module in the right-hand pane. You’ll need to either paste the user include file in over the include statement or create a new test bench tab and put it there. I’ve already done that for you, if you want a peek.

What’s it Worth?

Like most tools, this works best if you know how to not use the tool. Despite being handy, you still need to understand a few things about testbenches to make it work. On the other hand, it is a nice timesaver to not have to create the same code over and over for multiple modules. It also makes your test code a bit more consistent. If you don’t like the generated code, it is pretty easy to make changes even if you aren’t a Python wizard. I thought about changing the code to work from a template file, but it was fine like it is. However, not being one to leave well enough alone, I have a version that reads from a template file in the template branch on GitHub if you want to try it.

You might argue that you don’t want to simulate your Verilog and, instead, you’d rather put a logic analyzer on board and debug on the actual hardware. That sounds great in theory and I’ll actually show you how to do that in a future post. But there are problems. You generally can’t get everything in a logic analyzer unless your design is very simple. Reconfiguration can be a long process and you don’t always have the ability to set up the exact stimulus you need. Simulation is sort of a “God Mode” where you can make anything happen and see everything. Of course, simulation has its own problems, especially behavioral simulation where you aren’t accounting for real timing delays and things like that. So I’d argue that while onboard logic analyzers are a great tool, it isn’t a replacement for simulation just as simulation can’t completely replace live debugging.

Meanwhile, using this tool can help you create your testbenches. Reading its generated code can help you learn how to create your own even if you don’t want to use the tool in every case.

The Quantum of car lists: Storage firm drives into autonomous vehicle data logging

The Register - Fri, 11/16/2018 - 13:00
Sells 'intelligent' chassis, removable drive magazine, StorNext base station

Quantum has stepped sideways into the autonomous vehicle testing market with a data logging system integrated with its StorNext multi-tiered workflow file management product.…

Pages